gpt4 book ai didi

iOSOpenDev命令行工具构建报错

转载 作者:可可西里 更新时间:2023-11-01 05:41:57 27 4
gpt4 key购买 nike

好的,所以我花了一整天的时间在网上搜索为什么会这样。我已经安装了 iOSOpenDev XCode 模板,并打开了一个新的命令行工具项目,它给了我这个错误:

target 指定产品类型 'com.apple.product-type.tool',但 'iphoneos' 平台没有这样的产品类型

有人知道怎么解决吗?提前致谢。

最佳答案

这一定是安装问题。重新安装 iOSOpenDev 并检查其安装程序日志中是否有错误。我遇到了同样的问题,并通过以下两个步骤解决了它。

1) xcode-select must point to the correct xcode location, for example run the following line in Terminal:$ sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer2) You must agree xcode license in Terminal$ sudo xcodebuild -license$ xcodebuild -license

之后,重新安装该工具,它应该可以工作了。

关于iOSOpenDev命令行工具构建报错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12254482/

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