Xcode 9 Bug: Cannot find cdtool

前端 未结 4 641
时光说笑
时光说笑 2020-12-22 19:58

After installing Xcode 9 beta, Xcode 8 gives me an error when compiling a project:

Cannot find cdtool at \'/Applications/Xcode.app/Contents/Developer/

4条回答
  •  我在风中等你
    2020-12-22 20:44

    An Apple engineer reached out about this...

    Those of you with cdtool errors in Xcode 8, I suspect you installed the iOS 10.3 Simulator runtime from Xcode 9. It was discovered this week that this causes a problem with cdtool in Xcode 8.3.

    You can work around that by moving iOS 10.3.simruntime aside and restarting CoreSimulatorService (source):

    sudo mkdir /Library/Developer/CoreSimulator/Profiles/Runtimes/Backup 
    
    sudo mv /Library/Developer/CoreSimulator/Profiles/Runtimes/{,Backup/}iOS\ 10.3.simruntime 
    
    sudo killall -9 com.apple.CoreSimulator.CoreSimulatorService 
    

    Then restart Xcode, Simulator, etc. Those of you that deleted CoreSimulator.framework and thus cannot run Xcode.app any more can reinstall CoreSimulator.framework with:

    installer -pkg /Applications/Xcode-beta.app/Contents/Resources/Packages/XcodeSystemResources.pkg -target /
    

提交回复
热议问题