2012-09-03 74 views
4

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

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

有谁知道如何解决这个问题?提前致谢。

回答

4

这必须是安装问题。重新安装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 

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

+0

非常感谢。 –