I work on an iOS app supporting iOS 15 and above, with a widget supporting iOS 16 and above.
The widget currently does not load on iOS 17 beta, for users its just an empty box, both during snapshot preview while choosing the widget size, and after placing it on the home screen.
When building it from Xcode, I get the following error:
-[INIntent _initWithIdentifier:backingStore:schema:error:] Missing backing store for Intent: {xxx-xxx-xxx some ID} (N/A - N/A)
The app uses a custom Intent to allow some settings on the widget.
The widget and app share data through an App Group to avoid duplication of network requests.
I could not find any information on this error on SO, nor on Apple beta release notes. Is anybody experiencing this as well?
Thank you.
2
Answers
Have you tried to add
let configuration: ConfigurationAppIntent
in the TimeLine Entry?Example:
This code is generated automatically, and basically it’s the view that you see when the widget turns or spins to the other side
This worked for me using the example EmojiRangers
I could resolve this by making sure the intent is running on the main thread. With iOS 17 the intent code is now running directly in the app, NOT on the widget extension as before.
For me the extension seems to have crashed because it was running the code in the app instead of the extension.
Some parts of my code are a bit old and need to run on the main thread. The EntityQuery is running on a background thread though so I changed this and it’s working again in my case.