i'm working on an app which shares a swiftdata database between the main app and its widgets. prior to the sequoia/xcode 16 betas this was working fine with setting the same app group for app & widget targets.
however, now whenever i try to run my main app from Xcode i get a user permission requestor saying "<app name> would like to access data from other apps.". this happens every time i run it.
whenever the widget is started (via trying to place it on the desktop, or the widgetkit simulator etc) it exits immediately (i assume because it can't show the permission requestor?)
if i disable the app group for the widget, it runs.. however, of course, i can't access the main app's database.
i'm on sequoia beta 2 (24A5279h) and Xcode 16 beta 2 (16A5171r)
note: while the widgetkit simulator is now present in sequoia beta 2, i haven't actually been able to successfully use it
it feels like this solution to app groups on macOS could do with a revisit
The app group story on macOS is tricky. I go into gory details in App Groups: macOS vs iOS: Fight!
Two more things:
-
I’ll second Rico’s response up thread. Please file a bug when you encounter stuff that’s causing you grief. And please do post your bug number, just for the record.
-
I’ve been talking to other folks about the multiplatform app problem. See this thread for example.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"