gpt4 book ai didi

iphone - 在命令行中调试ios问题-Xcode

转载 作者:行者123 更新时间:2023-12-01 19:20:12 30 4
gpt4 key购买 nike

我为iPhone构建了一个项目,并在Xcode 4.3.2中对其进行了调试,效果很好。但是,我想在命令行中调试它,所以我运行:

xcodebuild -target NAMEOFTARGET -sdk SDKPATH -configuration Release

它应该与Xcode中的相同,但出现一些错误,并且无法编译!也许有人可以帮忙...
-Prefix-cfqwmqlvdeltqcceqguoaugscmoq/Igor2305-Prefix.pch.d
error: can't exec '/opt/local/bin/gcc-apple-4.2' (No such file or directory)
Command /opt/local/bin/gcc-apple-4.2 failed with exit code 71
** BUILD FAILED **
The following build commands failed:
ProcessPCH /var/folders/d7/sx0vvl0537l4x7md9b35m7br0000gn/C/com.apple.Xcode.501/SharedPrecompiledHeaders/Igor2305-Prefix-fwljjtsqayhghvfeivuxdyjuvt/Igor2305-Prefix.pch.pth Igor2305/Igor2305-Prefix.pch normal armv6 objective-c com.apple.compilers.llvm.clang.1_0.compiler
ProcessPCH /var/folders/d7/sx0vvl057l4x7md9b35m7br00gn/C/com.apple.Xcode.501/SharedPrecompiledHeaders/Igor2305-Prefi-cfqwmqlvdeltqceqguoaugscmoq/Igor2305-Prefix.pch.pth Igor2305/Igor2305-Prefix.pch normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(2 failures)

最佳答案

它正在/opt/中寻找GCC,但没有找到它。这不是与Xcode捆绑在一起的GCC的标准安装位置。以下命令将告诉您Xcode在哪里寻找其开发人员工具:

xcode-select -print-path

要更改它,请运行:
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer

该路径用于通过App Store安装的标准Xcode安装位置。如果已将其安装在其他位置,则必须相应地更改路径。

关于iphone - 在命令行中调试ios问题-Xcode,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10739185/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com