xcode报错 Shell Scrift Invocation Error

我使用的是Xcode 6.4但是最近用cocoapods的时候发现shell报错"unable to find utility "otool", not a developer tool or in PATH",Google的结果是 xcode -select xcode正确的目录,尝试无果,会不会是command line tool的问题卸载command line tool重装无果! 然后发现是git 无法正常使用了,于是我下了Xcode 7.0 beta 将Xcode -select到 Xcode 7.0路径下,结果git可以使用了,但是悲剧的是之前在Xcode 6.4下的项目 无法正常编译
报错如下
sh: line 1: 3536 Abort trap: 6 /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.4.sdk -find otool 2> /dev/null
xcrun: error: unable to find utility "otool", not a developer tool or in PATH
Command /bin/sh failed with exit code 72

求大神指教,万分感激。

阅读 4.8k
1 个回答
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题