【发布时间】:2013-04-16 14:41:42
【问题描述】:
我在 Xcode 4.5.1 和 iOS 6.0 中工作。刚接触“Test”iOS 应用程序。每当我尝试“测试”应用程序时,它都会显示“测试成功”,但在调试器区域出现错误。 错误信息是,
Error: No developer directory found at /Volumes/RED Zone/Softrware Dump/Xcode Tools/xcode 4.5.1/Xcode.app/Contents/Developer. Run /usr/bin/xcode-select to update the developer directory path.
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'launch path not accessible'
*** Call stack at first throw:
我还尝试使用终端更新路径,如下所示,
/usr/bin/xcode-select -switch /Applications/CompanyName/xcode 4.5.1/Xcode.app/Contents/Developer
它显示以下错误消息:
xcode-select: Error: argument missing from -switch option.
Usage: xcode-select -print-path
or: xcode-select -switch <xcode_folder-path>
or: xcode-select -version
Arguments:
我不知道如何解决这个问题?有人请帮我吗?期待您的帮助。提前致谢。
【问题讨论】:
-
我之前在使用带有空格的路径时遇到过问题,现在不确定,但是您可以尝试使用没有空格的目录并查看。此外,Xcode 应该在 /Applications 中: $ xcode-select --print-path /Applications/Xcode.app/Contents/Developer
-
@DavidH 感谢您的帮助。我直接在 Applications/ 下替换了我的 Xcode 应用程序,所以现在它工作正常。
标签: iphone ios unit-testing xcode4.5 linker-errors