Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Updating existing Watchkit app to WatchOS2

Yesterday I saw this post and made me realize I have a problem.

I have created an WatchOS2 app after having an WatchOS1 app in the store. When I tried to run the app it made me upgrade my bundle identifier name and now I have no idea if I will be able to submit my WatchOS2 app with a different bundle identifier. Does app store support two different bundle identifier for watch apps?

EDIT

With watchOS1 I had the following bundles:

|App               | my.app.com            |
|Watch             | my.app.com.watchkit   |    
|Watch Extension   | my.app.com.extension  |

And now, with watchOS2 I need to have the following:

|App               | my.app.com                       |
|Watch             | my.app.com.watchkit              |    
|Watch Extension   | my.app.com.watchkit.extension    | <- The difference

Can I submit with this difference?

like image 672
Tiago Almeida Avatar asked Oct 31 '22 14:10

Tiago Almeida


1 Answers

From the watchOS 2 Transition Guide:

The base bundle identifier of all your watch targets must be identical to the bundle identifier of your iOS app. This behavior applies even when you have separate targets for both watchOS 1 and watchOS 2. The only differences between the bundle identifiers of any of the targets is the extensions that Xcode adds to identify the Watch app and WatchKit extension. iOS does not install Watch apps whose bundle identifier does not match the bundle identifier of its iOS app.

Also you can check the Lister application to see all the new stuff Apple has implemented for Watch including the backward compatibility with watchOS 1.

Update for clarity: Here are bundle IDs for the watch app and watch extension respectively from the Lister app:

watchOS 1:

  • com.example.apple-samplecode.Lister.watchkitapp
  • com.example.apple-samplecode.Lister.watchkitextension

watchOS 2:

  • com.example.apple-samplecode.Lister.watchkitapp
  • com.example.apple-samplecode.Lister.watchkitapp.watchkitextension

The conclusion: As far as you see your bundle IDs naming is absolutely correct and feel free to submit your app.

like image 131
Dmytro Hutsuliak Avatar answered Nov 08 '22 08:11

Dmytro Hutsuliak