Watch-only apps cannot be contained in companion apps installed on the companion.

I'm trying to add an iOS app to an already existing watch only watchApp, however when i try to run i get the following error:

Watch-only apps cannot be contained in companion apps installed on the companion.

Does anyone know what is causing this and what steps I can take to properly add my new target?

Thanks
When you create a watch-only app from a template, the project is specifically set up to make it watch only. You'll need to undo some of that plumbing to add an iOS companion app. Try these steps:
  1. Make sure the bundle identifier of your new iOS target is the same as the one currently shown in the "stub" target (usually the first target in the list, above your Watch App target).

  2. In the Info.plist for the Watch App target, add the WKCompanionAppBundleIdentifier key with type String and set the value to the bundle identifier of your iOS app.

  3. In the Info.plist of the Watch Extension target, remove the "App is only available as a standalone watchOS app" (WKWatchOnly if you're looking at raw values) key.

  4. In that same Info.plist, add the "App can run independently of companion iPhone app" (WKRunsIndependentlyOfCompanionApp) key and set its value to YES.

  5. Delete the "stub" target.


not worked

Watch-only apps cannot be contained in companion apps installed on the companion.
 
 
Q