WatchKit Extension bundle identifiers

后端 未结 4 482
日久生厌
日久生厌 2020-12-04 07:56

I am trying to build my app but it failed. I am shown the message below.

error: WatchKit Extension doesn\'t contain any WatchKit apps whose bundle ide

4条回答
  •  不知归路
    2020-12-04 08:07

    You also may have to change the WKCompanionAppBundleidentifier key in the projects iOS companion app's info p.list to match the WKAppBundleIdentifer key in the watch kit extension info.plist. I found this out when I copied an earlier watch kit project and changed the WKAppBundleIdentifier in the watch kit extension info.plist to match the bundle identifier in the watch kit info.plist and the project still got the same error. You need to go to Finder, locate the iOS companion project info.plist, and double-click on it, then change the WKCompanionAppBundleIdentifer key if necessary. I wasn't able to see this key by looking ant the info.plist in Xcode.

提交回复
热议问题