xcodebuild中cc的执行路径错误

发布于 2024-12-15 15:53:25 字数 489 浏览 6 评论 0原文

我在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

幸福丶如此 2024-12-22 15:53:25

xcodebuild中,我需要指定CC的路径,否则会使用错误的路径。

make CC="$PLATFORM_DEVELOPER_BIN_DIR/cc"

During xcodebuild, I need to specify the path of CC, otherwise wrong one got used.

make CC="$PLATFORM_DEVELOPER_BIN_DIR/cc"
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文