SwiftData AppGroups

I'm trying to use SwiftData for iOS + watchOS app but can't seem to get it to work via app groups. Both apps run fine but no changes to model are reflected in either of them. Tried running example app but it's the same thing - the app is updated but extension is not.

Anyone had the same issue and knows how to solve it? Maybe some workaround? I tried multiple ModelConfiguration's with no luck and looking at debug messages in the console it seems like both apps are pointing to the same data store.

I'm using Xcode 15 beta 5

They changed the ModelConfiguration inits with Xcode 15 Beta 5. Perhaps that is the issue you are seeing.

SwiftData AppGroups
 
 
Q