skip to Main Content

When I use bundle id named like bellow. I have that error
Unable to install "MyApp"

(My app bundle: ilyabiryuk.bundle.Ropes)
But if I rename bundle like .watchkitapp It starts perfectly on simulator but give an error when I start it on my real watch(Series 3 42mm, watchOS 8.7.1)
How to fix that?
(IDE: Xcode 14 beta 6 (14A5294g))

3

Answers


  1. In the watch app info.plist, make sure the entry WKCompanionAppBundleIdentifier is present and that its value is the bundle ID of the iOS app.

    Login or Signup to reply.
  2. Bundle IDs should be as following:

    • iPhone app bundle ID: com.myname.myapp
    • Watch app bundle ID: .watchkitapp
    • Watch extension bundle ID: .watchkitapp.watchkitextension

    Note that Watch app and extension DOES NOT have parent application and start by a point (ie. relative bundle ID).

    Login or Signup to reply.
  3. For anyone tried all answers above. Here is what I got that finally worked:

    1. Clean Build Folder
    2. Add your iOS app bundle to WKCompanionAppBundleIdentifier

    Your simulator will scream that provisioning failed, ignored it.

    1. Add your iOS app bundle to the Watch’s Build Identifier field.

    Your simulator will scream that .watchkit 2.0 error and still will not
    work. Ignore it.

    1. Save and close Xcode
    2. Relaunch Xcode, and then build.
    3. Worked for me with steps above.
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search