Xcode cdtool 无法编译问题

Xcode cdtool can not compile issue

我将版本添加到我的 DataModel 并获得了 "cdtool can not compile"。

有没有人遇到过类似的问题? "cdtool" 是什么?

问题是我的数据模型包含多对多关系,但没有相反的关系。

来自 Apple 文档:

You must define many-to-many relationships in both directions—that is, you must specify two relationships, each being the inverse of the other. You can’t just define a to-many relationship in one direction and try to use it as a many-to-many. If you do, you will end up with referential integrity problems.