“Data Model Version Compile”.. error after upgrading to Lion (Xcode4.1)

后端 未结 4 1513
广开言路
广开言路 2020-12-09 05:21

Since upgrading to Lion yesterday (10.6->10.7), I\'ve been unable to compile a project that had no problems compiling prior to the upgrade.

It\'s not even a recent

相关标签:
4条回答
  • 2020-12-09 06:03

    Interestingly I found that I had this scenario after installing a new version of Xcode. It was caused by Xcode running from the mounted DMG. I chased the problem around for a bit until I eventually figured out it was doing the build using the tools on the DMG rather than the files copied to Applications. By ejecting the Xcode DMG it resolved the problem. Thought I'd post this in case it benefits anyone else. I suspect a number of the fixes being posted here and on other threads are working in some cases by chance of a reboot unmounting the DMG.

    0 讨论(0)
  • 2020-12-09 06:10

    I suddenly had this trouble on my CI after updating OSX (minor update). Jenkins couldn't build any Obj-C projects and always stopped with the same error (not depending on the project/datamodel).

    The fix was to simply remove the derivedData folder and reboot the machine.

    rm -rf ~/Library/Developer/Xcode/DerivedData/*
    sudo reboot
    
    0 讨论(0)
  • 2020-12-09 06:15

    Restart XCode and delete all the data from the Derive Data Folder.

    0 讨论(0)
  • 2020-12-09 06:23

    I've had the same issue, OS X Lion 10.7.1, Xcode 4.1.

    The problem is solved by removing all *.xcdatamodel directories that are not displayed in Xcode from your *.xcdatamodelid directory. These directories appear after *.xcdatamodel renaming in Xcode.

    Removing may be done in Terminal, by “Show package contents” menu in Finder or by right-clicking on xcdatamodel in Xcode and selecting "Show in Finder".

    0 讨论(0)
提交回复
热议问题