【问题标题】:Watchkit error: WatchKit Extension contains multiple WatchKit appsWatchkit 错误:WatchKit 扩展包含多个 WatchKit 应用程序
【发布时间】:2015-04-18 11:48:12
【问题描述】:

我在编译我的 watchkit 应用程序时收到此错误

嵌入式二进制验证实用程序错误

error: WatchKit Extension contains multiple WatchKit apps whose bundle     
identifiers match "com.tec.MyApp.watchkitapp". It can only have one

任何线索..? :)

【问题讨论】:

  • clue = "它只能有一个"
  • 我的应用确实只有一个,并且整个星期都在构建良好,然后突然发生了这种情况。但是再次清洁和建造修复了它。

标签: ios compiler-errors bundle watchkit apple-watch


【解决方案1】:

这是对我有用的步骤:

  1. 清理所有项目目录(选项+清理)
  2. 关闭 Xcode
  3. 删除“派生数据”
  4. 重建一切

【讨论】:

    【解决方案2】:

    一个 .app 只能包含一个 Apple Watch 配套应用。如果你想要多个 Watch-apps,你必须用它创建另一个 iPhone 应用程序。

    【讨论】:

      【解决方案3】:

      检查您的包标识符在所有目标中是否正确。

      【讨论】:

        【解决方案4】:

        确保您的扩展程序和您的应用使用不同的包标识符

        【讨论】:

          猜你喜欢
          • 1970-01-01
          • 2016-03-10
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 2015-07-24
          • 1970-01-01
          • 2015-01-27
          相关资源
          最近更新 更多