iOSOpenDev命令行工具构建错误

前端之家收集整理的这篇文章主要介绍了iOSOpenDev命令行工具构建错误前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
好的,所以我整天都在网上搜索为什么会这样.
我已经安装了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/Developer

2) You must agree xcode license in Terminal
$sudo xcodebuild -license
$xcodebuild -license

之后,重新安装该工具,它应该工作.

猜你在找的Xcode相关文章