xcodebuild中cc的执行路径错误
我在 Lion 上下载并安装了 Xcode 4.2。通过安装的示例,我可以使用 Xcode IDE 构建它们,但是当我尝试使用 xcodebuild 执行相同的项目文件时,我收到了这些错误消息。
can't exec '/Developer/Library/Xcode/PrivatePlugIns/Xcode3Core.ideplugin/Contents/SharedSupport/
Developer/Library/Xcode/Plug-ins/LLVM GCC 4.2.xcplugin/Contents/Resources/
cc -arch i386' (No such file or directory)
问题是它尝试调用 "...\cc -arch i386"
作为命令,但 cc 不在该目录中。
这个 xcodebuild
设置有什么问题?为什么 xcodebuild 尝试根据错误的目录信息调用 cc?
I downloaded and installed Xcode 4.2 on Lion. With installed examples, I could build them with Xcode IDE, but I got those error messages when I tried to execute the same project file with xcodebuild
.
can't exec '/Developer/Library/Xcode/PrivatePlugIns/Xcode3Core.ideplugin/Contents/SharedSupport/
Developer/Library/Xcode/Plug-ins/LLVM GCC 4.2.xcplugin/Contents/Resources/
cc -arch i386' (No such file or directory)
The problem is that it tries to call "...\cc -arch i386"
as a command, but the cc is not in that directory.
What's wrong with this xcodebuild
setup? Why xcodebuild tries to call the cc based on the wrong directory information?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在
xcodebuild
中,我需要指定CC
的路径,否则会使用错误的路径。During
xcodebuild
, I need to specify the path ofCC
, otherwise wrong one got used.