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

求大神指教,万分感激。

ios xcode objective-c

纯洁D笑面 9 years, 9 months ago
fossor answered 9 years, 9 months ago

Your Answer