I have a very similar issue. I have a multiplatform app, written in SwiftUI for iOS and macOS and for the macOS signing options i checked the "use ios bundle identifier" everywhere. I created an app group for iOS and for macOS. I created both appgroups in the dev portal. I created all the provisioning profiles manually (for iOS dev and iOS app store and the same for macOS and then 2 other sets for the widget extensions for iOS and macOS), but for some reason all my macOS profile only have the "in-app purchase" capability enabled but I need the app groups capability as well. This is so frustrating and annoying. I've never used xcode's auto managing profiles options, I've always created all of them manually so I do not consider myself new to this "territory" but I cannot find anything about this issue.
Post
Replies
Boosts
Views
Activity
Hi there. So this is the official and best way of doing this? Is this working all the time? @tkaravou stated 3 weeks ago that his calls return stale data and it's not working 100% of the time. Maybe there were some ios 14 beta bugs (i'm thinking maybe he was still running on beta verion, idk)? Really looking forward to an answer. Thank you. :D
@andrewbuilder
Hey there. Is it necessary to make the persistentStore a @StateObject? Isn't it ok by just passing the context from your shared store into the environment, just like in the pre-generated code from Apple? I'm pretty new to SwiftUI so someone please explain if you can and have some time :) Thank you in advance!