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

Originator:bloi
Number:rdar://33212613 Date Originated:10-Jul-2017 04:42 PM
Status:Open Resolved:
Product:iOS + SDK Product Version:iOS 11 Beta
Classification:Serious Bug Reproducible:Always
 
Summary:
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 11 Beta

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

Comments

Sample

https://github.com/fonkadelic/radar.apple.com/tree/master/33212613%20-%20Loading%20of%20optimized%20Core%20Data%20(*.omo)%20model%20fails%20on%20iOS%2011%20Beta/LoadOmo


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!