On Demand Resource Trouble in Xcode 11 / iOS 13
On Demand Resource Trouble in Xcode 11 / iOS 13
- Subject: On Demand Resource Trouble in Xcode 11 / iOS 13
- From: Steve Mykytyn via Cocoa-dev <email@hidden>
- Date: Fri, 18 Oct 2019 13:59:34 -0700
I'm having a problem with ODR in Xcode 11. Worked fine in Xcode 10 / iOS
12, both device and simulator.
1. I have the asset catalog in the main bundle
2. I have the Build Setting set to YES for Embed Asset Packs in Product
Bundle
3. I can see that the assets are correctly copied into the bundle.
4. The Appearances of each image is set to None
5. There are no spelling errors in the asset tags
6. Using the old build system
7. The production app on the App Store works fine on iOS 12, fails on iOS
13.
I get varying results depending on the tag and the simulator / device.
On a real iPhone 11 Pro, the method returns the tag not found error message:
Error Domain=NSCocoaErrorDomain Code=4994 "The requested application data
doesn’t exist." UserInfo={NSLocalizedFailureReason=InvalidTag}
On an iPhone 11 Pro simulator, it finds the tagged resources, but trying to
retrieve the images results in nil.
Same failures on a simulated older device / OS (6s/11.0), which worked fine
in the past.
I've tried providing images for light, dark, etc. No luck.
Any suggestions? At this point I'm getting ready to just avoid on demand
resources entirely...
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden