I've added a watch kit app to my iOS app and everything was working fine and running well until I wanted to share data between the two apps.
Whenever I try to add the 'App Groups' capability on the watch kit extension, it tells me that my bundle ID (com.myrealappid.watchkitextension) is not available.


Has anyone come across this before or have any suggestion on how to fix it?
It seems like someone already used that specific Bundle Identifier if you can't find it in your member center.
You need to create another Bundle ID in this case.
It turns out that another developer account that I use in Xcode had the missing ID. The apps are completely unrelated and belong to different clients of mine so I've no idea how it ended up there.
I deleted the Bundle ID from that account and everything is working as expected now.
If this happens anyone else, check any other developer accounts you have access to. That might just be where the missing Bundle ID is.
来源:https://stackoverflow.com/questions/28634443/watchkit-extension-bundle-id-unavailable