iOSOpenDev命令行工具构建报错

标签 ios xcode build-error command-line-tool

好的,所以我花了一整天的时间在网上搜索为什么会这样。 我已经安装了 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

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

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

相关文章:

ios - 使用 OHHTTPStubs 进行模拟时未到达 Alamofire 响应 block

iOS自动布局视觉格式语言翻译

ios - 如何使用Xcode7/iOS9在Safari中调试UIWebView?

ios - 迪尔德 : Library not loaded with XCFramework for device but works with Simulator

ios - Facebook iOS SDK : How to handle SKIP button when requesting publish_actions?

android - 使用 Crosswalk WebView 插件构建 Cordova 应用程序时出错

c++ - 错误 C2182 : '*' : illegal use of type 'void' c:\boost_1_53_0\boost\smart_ptr\intrusive_ptr. hpp

ios - Xcode iOS Localization - 尝试学习如何理解/使用位置代码

Swift - UIPanGestureRecognizer 在只想选择顶层时选择所有层

c++ - 如何创建自定义 C++ 类以与蓝图一起使用