没有那个文件或目录 XCODE 7

No such file or directory XCODE 7

我正在尝试在模拟器中测试我的应用程序,但出现此错误:

"No such file or directory"

这只是硬道理。

所有的错误是这样的:

/Users/g4b0cu4dr05_c4rd3n4s/Library/Developer/Xcode/DerivedData/CityLines-desdmmzxgmoemhavllwykbcogetw/Build/Intermediates/CityLines.build/Debug-iphonesimulator/CityLines.build/Script-1B1FAC6D1C0E6D02003951B3.sh: line 2: /usr/local/bin/carthage: No such file or directory

做以下事情

  1.Close the XCode
  2.Delete the app from simulator
  3.Quite XCode
  4.Go to library ->developer->XCode->Derived Data->Then delete your above script..... File or folder.
  5.Now finally clean and run the application.

低于参考

Xcode suddenly stopped running project on hardware: "Could not launch xxx.app: .. No such file.."

答案很简单:我只需重新安装 pod 文件和 Carthage 文件,一切正常。