I’m getting this error on Xcode Version 12.2 beta 3 (12B5035g) with iOS 14.2 beta 4. It works partially in the simulator but not on a real device.
Post
Replies
Boosts
Views
Activity
I’m having this issue in the iOS 14 GM.
This is happening to me on Xcode 12 beta 4 with iOS 14 beta 4, but only on a device.
This is still an issue for me as well. Anybody have any updates?
@andrewbuilder's answer is excellent. The only thing that needs to be changed is making "persistentContainer" a let instead of a lazy var. As as lazy var, the persistent container will not load in time for the first view. This caused a crash when my first view was trying to access my core data persistent container. However by making it a constant variable, this issue went away.
I would also really like to see how Core Data could be incorporated into this.
I'm experiencing the same thing still. Do you happen to have any updates to this?