【问题标题】:target specifies product type 'com.apple.product-type.app-extension', but there's no such product type for the 'iphonesimulator' platform"目标指定产品类型“com.apple.product-type.app-extension”,但“iphonesimulator”平台没有这样的产品类型”
【发布时间】:2014-12-21 01:34:57
【问题描述】:

在我的项目中,我有一个 iOS 6 的部署目标。我想在 iOS 6.1 模拟器中测试我的应用,但 Xcode 6.1 不支持 iOS 7.0 之前的 iOS 模拟器,所以我下载并安装了 Xcode 5.1。 1.当我在 Xcode 5.1.1 中构建应用程序时,它给了我这个错误:

target specifies product type 'com.apple.product-type.app-extension', but there's no such product type for the 'iphonesimulator' platform

如何解决问题并在 iOS 6 模拟器中运行应用程序?

【问题讨论】:

    标签: ios xcode xcode5 ios-simulator


    【解决方案1】:

    实际上可以将模拟器文件夹从旧版本的 Xcode 复制到新版本中,或者至少在以前的 Xcode 版本中是这样。我在 SO 上找到了如何在此处执行此操作的描述,并使用 Xcode 5 和以前的 SDK 进行了操作。它应该适用于 Xcode 6.1。

    恐怕我再也无法访问这些信息了。

    我建议搜索“在 Xcode 中安装 iOS 6 模拟器”。

    编辑:根据 Jeremy 的说法,Apple 在 Xcode 6 中更改了模拟器的格式,因此这在 Xcode 4/5 和 Xcode 6 之间不起作用。

    【讨论】:

    • iOS 6.0 和 6.1 与 CoreSimulator 不兼容,CoreSimulator 是 Xcode 6.0 中的新模拟器架构。
    【解决方案2】:

    应用扩展需要 iOS 8.0 及更高版本。如果你想用 Xcode 5.1 在 iOS 6.1 中测试你的项目,你应该在 Xcode 5.1 中测试时从你的项目中删除 App Extension 目标,因为它不适用于旧的操作系统版本。

    【讨论】:

      猜你喜欢
      • 2014-11-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-07-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多