I implemented the document provider app extension feature with my own ios app. The problem is the app extension was not able to access the containing app images/assets or the containing apps resource data. Does any one knows how to achieve it?.
The extension has its own target in your Xcode project. In order to access resources in the extension you also need to add them to that target (in the File Inspector
also check your extension target in the Target Membership
section). Just be aware that those resources also get copied into the extension bundle, which increases your overall app size.
Sidenote: In my extension I didn't add my default image asset catalogue (Images.xcassets
) to the extension, but was still able to access the containing images. Maybe that's an exception.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With