SwiftData + CloudKit

I have a new app I’m working on. I just ran the app on my own phone and noting was put in CloudKit. I get the following error:

	com.apple.coredata.cloudkit.zone:__defaultOwner__ = <CKError 0x30305d530: "Permission Failure" (10/2007); server message = "Invalid bundle ID for container"; op = 5D9EC664D6A5C463; uuid = 990B1892-07E6-45C9-B718-0B1BD8DED75A>
}>

So none of my SwiftData models are being transferred up the CloudKit. My bundle ID is: com.tazmancoder.MyHomeInventory. I know that everything is setup correctly cause I have another app using SwiftData and I followed the same setup.

I have done the following and nothing has worked: Go to https://developer.apple.com and sign in Select Certificates, Identifiers & Profiles Select Identifiers (App IDs) Edit App ID for the app Uncheck iCloud Save Check iCloud Quit Xcode and Clear DerivedData Run app

I am not sure why this is happening? Can someone please tell me why this happening and how to fix it?

Thanks,

-Mark/*

SwiftData + CloudKit
 
 
Q