Post

Replies

Boosts

Views

Activity

databaseScope lead to dyld: Library not loaded on xcode13-beta with simulator 14.5
Hey! recently I did some changes to my apps to fit iOS 15 and noticed that the import of CloudKit is now require for some iCloud CoreData functions like description.cloudKitContainerOptions?.databaseScope = .private or CKFetchRecordZonesOperation.fetchAllRecordZonesOperation(). This works fine until I change the Simulator to iOS 14.5, which leading to the follow crash: dyld: Library not loaded: /System/Library/Frameworks/_CoreData_CloudKit.framework/_CoreData_CloudKit   Referenced from: /private/var/containers/Bundle/Application/DBD9242D-A85E-4957-948A-D770C6C6D6B5/CoreDataTest.app/CoreDataTest   Reason: image not found It's also replicable on real devices. I also set CloudKit.framework under the Generals-Tab and set it to optional in Build Phase. Still not working. What do I missing?
7
0
3.6k
Jun ’21