Post

Replies

Boosts

Views

Activity

Reply to CoreData in Swift Packages
This was helpful, I wasn't able to find much this failure. The formatting of your code block didn't work, lets see if I can paste your snippet and get the formatting better: let bundle = Bundle.module let modelURL = bundle.url(forResource: "ModelName", withExtension: ".momd")! let model = NSManagedObjectModel(contentsOf: modelURL)! let container = NSPersistentCloudKitContainer(name: "ModelName", managedObjectModel: model) My situation was a little different, a test case target that wasn't finding the model for some reason, and Bundle.main wasn't right, that was some test runner process embedded in Xcode.app, . To find the right one I have to dive into allBundles with let bundle = Bundle.allBundles.first(where: { $0.bundleURL.pathExtension == "xctest" }): guard let bundle = Bundle.allBundles.first(where: { $0.bundleURL.pathExtension == "xctest" }) else { fatalError("can't find test bundle containing model") } guard let modelURL = bundle.url(forResource: "Storage", withExtension: ".momd") else { fatalError("can't find model") } guard let model = NSManagedObjectModel(contentsOf: modelURL) else { fatalError("can't create model") } let container = NSPersistentCloudKitContainer(name: "ModelName", managedObjectModel: model)
Jul ’25
Reply to Filling the tax Information. Help needed.
On my "U.S. Certificate of Foreign Status of Beneficial Owner." form (doing this November 2024 from Canada) it doesn't say "U.S. Person", however it does have the "Title" field I need to fill in with something to make the "Submit" button enabled. Indeed there's no help for what's wanted in this field, and I couldn't find anything else online. Other tax things I needed to setup had me classify myself as a Sole Proprietor, so that's what I'm going to try as my "title". I have no idea!
Topic: App & System Services SubTopic: StoreKit Tags:
Nov ’24