简体   繁体   中英

Watchkit error: WatchKit Extension contains multiple WatchKit apps

I am getting this error when I compile my watchkit app

Embedded binary validation utility error

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

Any clue..? :)

A .app can contain just one Apple Watch companion app. If you want multiple Watch-apps, you must create another iPhone app with it.

检查所有目标中的捆绑标识符是否正确。

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

This are the steps that worked for me:

  1. Clean all project dir (options+clean)
  2. Close Xcode
  3. Delete "Derived Data"
  4. Rebuild everything

XCode Menu => Product => Clean Build Folder

Build Project & Run it

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM