Search code examples
xcodeios-simulatorwatchos

WatchKit 2.0 app's bundle ID person.bundle.Ropes.watchkitapp is not prefixed by the parent app's bundle ID followed by a '.'; expected prefix


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))


Solution

  • 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.