Loading of optimized Core Data (*.omo) model fails on iOS 11 Beta

Originator:arkadiusz.holko
Number:rdar://33573724 Date Originated:27-Jul-2017 09:32 PM
Status:Closed Resolved:
Product:iOS + SDK Product Version:iOS 11b4
Classification:Serious Bug Reproducible:Always
 
Summary:
This is a duplicate of radar #33212613 For me it works fine in local Debug and Release builds but doesn’t work in TestFlight builds.

Trying to load an optimized Core Data model (*.omo) fails on iOS 11 Beta.


Steps to Reproduce:
1. Open the attached example in Xcode 8
2. Build
3. Run the app on an device with iOS 11 Beta
4. Creation of NSManagedObjectModel(contentsOf:) fails

Expected Results:
The optimized model is successfully loaded. This works properly on iOS 10.

Actual Results:
Loading of the *.omo fails:
CoreData: annotation:  Failed to load optimized model at path '/var/containers/Bundle/Application/9FED382D-B0DB-47D1-A6C8-B92928AA2187/LoadOmo.app/LoadOmo.momd/LoadOmo.omo'

Version:
iOS 11b4

Notes:
As a workaround the unoptimized data model (*.mom) can be loaded.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!