WatchKit app wont run on simulator

前端 未结 9 1711
旧时难觅i
旧时难觅i 2021-01-04 10:09

error: WatchKit Extension doesn\'t contain any WatchKit apps. Verify that the value of WKWatchKitApp in your WatchKit App\'s Info.plist is set to YES.

相关标签:
9条回答
  • 2021-01-04 11:02

    I had changed the autogenerated Bundle ID and then hit the same error.

    I found that the value in the WatchKit Extension plist needed to get updated. Do a global search on this "WKAppBundleIdentifier" and then make it match the bundle id of your WatchKit app. This fixed the error for me.

    0 讨论(0)
  • 2021-01-04 11:02

    I found that in extension sources it was pointing to Debug-iphoneos location of WatchKitApp so readding it fixed the problem

    0 讨论(0)
  • 2021-01-04 11:04

    this solved the problem for me:

    • go to WatchKit Extension | Build Phases | Copy Bundle Resources
    • click the +
    • search the products folder and choose WatchKit App.app

    afterwards clean and rebuild

    0 讨论(0)
提交回复
热议问题