11

Want to run app under watchOS getting error under Xcode beta: Domain: IDELaunchErrorDomain Code: 15 Failure Reason: Build and Run launch failed as the app to run does not appear to be known by the system.

Evgeny Zrorin
  • 331
  • 1
  • 11

3 Answers3

7

My solution was to add to watch app scheme iOS target like in screenshot: enter image description here

However I reported to Apple about such behavior.

Evgeny Zrorin
  • 331
  • 1
  • 11
1

This happened to me after modifying the bundle identifier. Following these steps works for me:

  • Delete all the Schemes
  • Select the WatchKit App target and under General > Embedded Content remove the WatchKit Extension
  • Select the WatchKit Extension target and under Info > NSExtension > NSExtensionAttributes > WKAppBundleIdentifier make sure it is the same identifier the WatchKit App
  • Clean Build (just in case)
  • Select again the WatchKit App target and under General > Embedded Content add the WatchKit Extension
  • Add a new Scheme for the WatchKit App
  • Edit the new Scheme and in Build add a the target for: (credits to Evgeny Zrorin)
    • The iOS App target if your WatchKit App is a companion of an iOS App
    • The iOS target generated by Xcode if your WatchKit App is a standalone App

You must have 2 targets in your Scheme > Build, run your app and good luck

vauxhall
  • 1,761
  • 16
  • 14
0

With your WatchKit app selected under your targets, go to 'Build Phases', expand the 'Dependencies' and the 'Embed App Extensions' sections and make sure that the correct Watchkit App Extension is present there. If you duplicated your target, it is possible that an old unrelated WatchKit extension sitting over there is creating the problem.

Bijoy Thangaraj
  • 4,940
  • 3
  • 35
  • 64