Post

Replies

Boosts

Views

Activity

Comment on Build warning after migrating watchOS project to single target in Xcode 14
Thank you for the tip. The Info.plist did indeed contain a reference to NSExtension. However, having deleted it, I now get the following build error: Couldn't load Info dictionary for DVTFilePath:0x6000000b42a0:'/Users/userName/Library/Developer/Xcode/DerivedData/appName-dgsfediuxlxwolgiudftjdxvvemi/Build/Products/Debug-iphonesimulator/appName.app/Watch/appName.app' Deleting derived data did not fix this error.
Sep ’22
Comment on Build warning after migrating watchOS project to single target in Xcode 14
After a bit more testing, the build only succeeds if I FIRST build for watchOS, and SECOND for iOS. Otherwise, iOS build returns the error: .../Xcode/DerivedData/AppName-dgsfediuxlxwolgiudftjdxvvemi/Build/Products/Debug-watchos/AppNameWatch.app: No such file or directory. I suspect this is related to how the iOS and watchOS targets are related to each other. Building for a physical iOS device fails every time.
Sep ’22
Comment on How to Test In App Purchase Promo Code?
also interested in this. The apple docs tutorial cannot be followed, because my App Store connect looks different. Presumably because the app was not yet submitted for review.
Topic: App & System Services SubTopic: StoreKit Tags:
Replies
Boosts
Views
Activity
Jan ’22
Comment on Build warning after migrating watchOS project to single target in Xcode 14
Thank you for the tip. The Info.plist did indeed contain a reference to NSExtension. However, having deleted it, I now get the following build error: Couldn't load Info dictionary for DVTFilePath:0x6000000b42a0:'/Users/userName/Library/Developer/Xcode/DerivedData/appName-dgsfediuxlxwolgiudftjdxvvemi/Build/Products/Debug-iphonesimulator/appName.app/Watch/appName.app' Deleting derived data did not fix this error.
Replies
Boosts
Views
Activity
Sep ’22
Comment on Build warning after migrating watchOS project to single target in Xcode 14
After a bit more testing, the build only succeeds if I FIRST build for watchOS, and SECOND for iOS. Otherwise, iOS build returns the error: .../Xcode/DerivedData/AppName-dgsfediuxlxwolgiudftjdxvvemi/Build/Products/Debug-watchos/AppNameWatch.app: No such file or directory. I suspect this is related to how the iOS and watchOS targets are related to each other. Building for a physical iOS device fails every time.
Replies
Boosts
Views
Activity
Sep ’22
Comment on Build warning after migrating watchOS project to single target in Xcode 14
I found the issue: for some reason, the watchOS target was missing from Target dependencies of the iOS target. Solved!
Replies
Boosts
Views
Activity
Sep ’22
Comment on UICloudSharingController sharing via Messages broken in iOS16
I spoke too soon. The issue started appearing again. It does not matter whether UICloudSharingController is invoked using UIViewController or UIViewControllerRepresentable. It looks like I cannot remove the "solved" badge from this comment, so I guess I will create a new post.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’22
Comment on UICloudSharingController sharing via Messages broken in iOS16
It could be related. I opened a DTS and Apple confirmed my issue as a known bug with high priority. In your case, the console output could be informative - you should double-check that your bundle ID is set correctly throughout the app.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Dec ’22
Comment on UICloudSharingController sharing via Messages broken in iOS16
Check out SWCollaborationView. It's not working for me because it does not appear to be compatible with SwiftUI. But if you're using UIKit, SWCollaborationView can replace UICloudSharingCntroller. I can confirm the share goes through even on subsequent attempts.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Dec ’22
Comment on SwiftUI MapKit - MapAnnotation - Publishing changes from within view updates is not allowed, this will cause undefined behavior.
finally. I really need this fixed. I'm getting THOUSANDS of these warnings with every run. It's ridiculous.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Feb ’23
Comment on SwiftUI and @FetchRequest - modify predicate or sort dynamically?
Using .filter seems terribly inefficient. Can you try comparing the load speed with a large number of files? Something tells me that changing the fetchRequest predicate (rather than evaluating the results) should be much faster.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Apr ’23
Comment on Swift Charts: Changing chartXVisibleDomain changes chartScrollPosition
Thank you. We came up with a similar workaround, wherein we force refresh the chart using the .id() modifier when the user changes visible domain. Unfortunately, the loss of animations makes these workarounds unsuitable for production. I look forward to an official bug fix to this.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jul ’24