Posts

Post marked as solved
3 Replies
0 Views
The problem resolved itself. It seems that the corporate network I was connected to blocked some connections. I guess Xcode was not able to download provisioning profiles or other necessary files. But Xcode did not show any errors regarding profile management, in fact it seemed to have successfully downloaded everything.In a private WiFi network everything worked fine again. Very strange behavoir.
Post marked as solved
6 Replies
0 Views
Hi. I use the CoreData template provided by Apple:lazy var persistentContainer: NSPersistentContainer = { let container = NSPersistentContainer(name: "MyPersistentStore") container.loadPersistentStores(completionHandler: { (storeDescription, error) in NSLog("Store description: \(storeDescription)") if let error = error as NSError? { fatalError("Unresolved error \(error), \(error.userInfo)") } }) return container }()How/where do I set the NSPersistentStoreFileProtectionKey in this case?Best regardsBjörn