xcode – Bundle id for watch app companion to iOS app


I have an iOS app with bundle identifier com.mybundleid. I have added a new watch os app target. I am using Xcode 15.1 and it seems the watch extension is no longer needed.

When I set the bundle id for the watch app target to com.mybundleid.watchkitapp, the iOS app and the watch app are correctly paired and I can sendMessage from one to the other.
However if I try to distribute the archive to the App Store, Xcode fails and outputs the following error:

Failed Registering Bundle Identifier

The app identifier "com.mybundleid.watchkitapp" cannot be registered to your development team because it is not available. Change your bundle identifier to a unique string to try again.

No profiles for 'com.mybundleid.watchkitapp' were found

Xcode couldn't find any iOS App Store provisioning profiles matching 'com.mybundleid.watchkitapp'.

If I change the bundle id suffix to something else, like com.mybundleid.watchkitapp2, then I can distribute the archive to the App Store but the two apps don’t communicate.

What is the correct way to handle bundle ids for watch app that run with an existing iOS app?

Latest articles

spot_imgspot_img

Related articles

Leave a reply

Please enter your comment!
Please enter your name here

spot_imgspot_img