Search code examples
xcodexcode8

Uniqueness Constraints feature requires Xcode 7.0 tools or later


I'm running Xcode 8.3 and I wanted to add constraints to one of Core Data entities. That's an error I'm getting:

enter image description here

How can I fix it?


Solution

  • Actually, instead of editing this in a text editor, you can do it from the XCode UI. Click on the xcdatamodel file, and choose the "Show the File inspector" tab in the tabs of inspectors on the right side of the screen. You will see a dropdown for the Tools Version. Here is an illustration:

    XCode inspector area where you can edit the tools version