Post

Replies

Boosts

Views

Activity

Reply to @Query SortDescriptor with a Boolean
Hello, I have not yet used SwiftData, but what init are you using for the SortDescriptor? I see this one in the documentation: [https://developer.apple.com/documentation/foundation/sortdescriptor/3802525-init) init( _ keyPath: KeyPath<Compared, Bool>, order: SortOrder = .forward ) where Compared : NSObject Is says that is needs to conform to NSObject. So might need to bridge it somehow so that the types are compatible. There is a way to do it via NSNumber.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Oct ’23
Reply to Core Data + CloudKit crash on startup only in production
Yes, the same thing happened to me today. I forgot to add the "Capabilities" to each of my targets. I think you need to enable the "Background Modes" one, with 'Remote Notifications' and 'Background Fetch' checked in addition to just iCloud.
Replies
Boosts
Views
Activity
Jul ’23
Reply to iOS 17 Debug Log- Failed to convert from bundle ID
Hello, with the latest beta software, this issue seems to be resolved. Thanks!
Replies
Boosts
Views
Activity
Jul ’23
Reply to iOS 17 Debug Log- Failed to convert from bundle ID
Yes, the message came back for me too. I think it went away when I had the "developer version" of iOS installed, but comes back on my personal device.
Replies
Boosts
Views
Activity
Oct ’23
Reply to @Query SortDescriptor with a Boolean
Hello, I have not yet used SwiftData, but what init are you using for the SortDescriptor? I see this one in the documentation: [https://developer.apple.com/documentation/foundation/sortdescriptor/3802525-init) init( _ keyPath: KeyPath<Compared, Bool>, order: SortOrder = .forward ) where Compared : NSObject Is says that is needs to conform to NSObject. So might need to bridge it somehow so that the types are compatible. There is a way to do it via NSNumber.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’23
Reply to Cannot archive after upgrading to Xcode 15. Command SwiftCompile failed with a nonzero exit code
I would clear my derived data, and make sure you have the new toolchain selected. Did you upgrade your project's definition file also?
Replies
Boosts
Views
Activity
Oct ’23