iOS:由于Xcode 9中的Fetched Indexes,无法编译CoreData模型

Tom*_*ina 7 core-data xcode9-beta

根据发行说明,Xcode 9增加了对获取索引的支持:

"数据模型编辑器为Core Data的新获取索引功能及其现有的属性索引和实体复合索引功能提供了统一的接口.旧的数据模型被转换为获取索引形式以进行编辑,并在必要时保存为旧的文件格式编译部署目标低于iOS 11,watchOS 4,macOS 10.13或tvOS 11的数据模型继续生成兼容的编译形式.(30843153)"

我的项目目前已将部署目标设置为iOS 9,但我无法编译我的CoreData模型,它为每个具有复合索引集的实体提供了以下错误:

Model.xcdatamodeld/Model.xcdatamodel:MyEntity|compoundIndex[0]: error: Expression requires a concrete result type.  
Model.xcdatamodeld/Model.xcdatamodel:MyEntity|compoundIndex[0]: error: Expression attributes are not compatible with the current deployment target.  
Model.xcdatamodeld/Model.xcdatamodel:MyEntity|compoundIndex[1]: error: Expression requires a concrete result type.  
Model.xcdatamodeld/Model.xcdatamodel:MyEntity|compoundIndex[1]: error: Expression attributes are not compatible with the current deployment target.  
Model.xcdatamodeld/Model.xcdatamodel:MyEntity: error: Fetch Indexes feature requires iOS deployment target 11.0 or later  
Model.xcdatamodeld/Model.xcdatamodel:MyEntity: error: Fetch Indexes feature requires Xcode 9.0 tools or later  
Run Code Online (Sandbox Code Playgroud)

知道如何修复构建错误吗?

更新:

除了从关系创建的情况外,Xcode 9正确地将复合索引转换为获取索引,如"已知问题"部分所述:

数据模型编辑器仅支持从此测试版中的属性和表达式创建获取索引,而不是从关系创建.(32407895)

受影响的提取索引如下所示,可以从下拉菜单中选择唯一的属性:

在此输入图像描述

但是,文档中没有描述的解决方法.

Tom*_*ina 0

根据发行说明,此问题已在 Xcode 9 beta 2 中修复:

Xcode 数据模型编辑器支持从属性、表达式和关系创建获取索引。(32407895)