Post

Replies

Boosts

Views

Activity

Reply to Unable to Write to UserDefaults from Widget Extension Despite Correct App Group Configuration
I also switched to using unified logging with os.Logger(subsystem:category) in the widget extension, and it's successfully logging details. Do you think there's a way to leverage these logs for tracking events? I'm not sure how to route them to an external log management system, since widget extensions can't make network calls or write to persistent storage.
4w
Reply to Unable to Write to UserDefaults from Widget Extension Despite Correct App Group Configuration
I switched to writing to a file instead and I get the same error: Error Domain=NSCocoaErrorDomain Code=513 "You don’t have permission to save the file “testFromWidget.txt” in the folder “B6DF24C2-XXXX-XXXXX-XXX-XXXXXXX." UserInfo={NSFilePath=.../testFromWidget.txt, NSURL=.../testFromWidget.txt, NSUnderlyingError=0x1078790e0 {Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted"}}
Aug ’25