【问题标题】:iOSOpenDev command line tool build erroriOSOpenDev 命令行工具构建错误
【发布时间】:2012-09-03 22:00:58
【问题描述】:

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

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

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

【问题讨论】:

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


    【解决方案1】:

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

    1) xcode-select 必须指向正确的 xcode 位置,例如在终端中运行以下行: $ sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer 2) 您必须同意终端中的 xcode 许可证 $ sudo xcodebuild -license $ xcodebuild-许可证

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

    【讨论】:

      猜你喜欢
      • 2014-08-06
      • 2012-09-21
      • 1970-01-01
      • 2021-12-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多