Watchkit Extension Bundle Identifiers

WatchKit Extension bundle identifiers

You have to be careful when changing the bundle identifiers, and here's how they should be set (you need to change each identifier in the Info.plist for the iPhone app, for the Watchkit Extension and for the Watchkit App):

iPhone Application Info.plist:

Set any bundle identifier as you like (the "Bundle identifier" property).

Example:

Bundle identifier: com.fruitcompany.orange

WatchKit App Info.plist

The bundle identifier here must be prefixed with the identifier of the iPhone application, like this(example):

Bundle identifier: com.fruitcompany.orange.watchkit

You also need to change the WKCompanionAppBundleIdentifier which must match with the iPhone application bundle identifier, like this:

WKCompanionAppBundleIdentifier: com.fruitcompany.orange

WatchKit Extension Info.plist:

The bundle identifier here must be prefixed with the identifier of the iPhone application, like this(example):

Bundle identifier: com.fruitcompany.orange.watchkit.extension

You also need to set the WKAppBundleIdentifier under the NSExtension attribute.

WKAppBundleIdentifier

The WKAppBundleIdentifier identifier must match with the WatchKit app bundle identifier like this:

WKAppBundleIdentifier: com.fruitcompany.orange.watchkit

Don't forget to check that your Bundle ID in project target is the same as in Info.plist!

How to set Bundle Ids, App Identifiers and Provisioning Profiles to publish a WatchOs App made with SwiftUI and XCode?

In Target > General > Bundle Indentifier

They should be incremental for the extension targets

  • Main app = com.domain.appName

  • Watch app = com.domain.appName.watchkitapp

  • Watch extension = com.domain.appName.watchkitapp.watchkitextension

Your extension isn't unique (it doesn't add the extension part) from what I can see.

Also, your Version and Build in the same area should match all 3 Projects

Changing Watchkit extension bundle id after renaming project

Seems like changing module of class in interface was a necessity. It was named as previous module, after the change of new module which is already suggested by xcode when i click the name, it is working.

WatchKit Extension Bundle ID Unavailable

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.

Bundle Identifier issue when using WatchKit

Well I feel pretty stupid now as I figured it out.

My bundle ID 467***GHZ. the period is actually included as part of the name.

So 467SNW7GHZ.watchkitapp needed to become 467SNW7GHZ..watchkitapp

It doesn't look right but it works and the build is now sitting happily waiting for review.



Related Topics



Leave a reply



Submit