Unable to launch Apple Watch app in iOS Simulator

I am trying to launch an Apple WatchKit target using my generic application using Xcode 6.2

I'm probably doing something wrong, but I can’t access the simulator in the scheme menu

enter image description here

Any idea?

+5
source share
5 answers

Have you tried connecting it in an iOS simulator?

Attach in Hardware / External Displays / Apple Watch

+16
source

This seems to be a bug that, for some reason, affects some build schemes for some reason. Fortunately, this is easy to fix.

  • From the menu that appears in the screenshot, select "New layout."
  • Select the WatchKit app as the target and give it a name. Click OK.
  • In the new entry in the Schemes menu, you can now open the WatchKit application in the simulator.

You can also fix this problem by using Schema Management and uninstalling and re-adding an existing WatchKit application.

+4
source

Bad luck?

For those who are still experiencing a headache after doing this list of things:

  • Creating New Schemes
  • Hacking target device families
  • Autosave Schemes
  • Clean up the source data cleanup project and the Cache module
  • Restart Xcode, Mac

History

It took me about 3 hours to get rid of any goals (in my case, the goal was β€œMy Mac”), I copied the project somewhere to save the current data, and I did this to check:

  • Delete current goals ( AppExtension and WatchKit )
  • Creating them again (to my surprise, iOS Simulator came up this time)
  • Product Opening β†’ Scheme β†’ Edit Scheme
  • Choosing a scheme whose goal is the WatchKit App
  • In the "Build" section, I see that my old scheme had only its own goal (WatchKit one), and the new one, created from new goals, had 3 goals (MainApp, WatchKit and WatchExtension).
  • I did the same with my old ones, adding a goal, and the simulator came up, ran and worked great.

Decision

  • Open Product β†’ Scheme β†’ Change Scheme
  • Select WatchKit Scheme
  • Select Build , and if you see only one target, it may be so, add another desired target (in my case it is the MainApp and WatchKit extension)
  • If this works, welcome :)

Hope this helps someone

+2
source

This is probably the problem that is reported in the Xcode Release Notes , whereby Xcode cannot communicate with the simulator service if you rename Xcode.app. Reboot the system.

Renaming Xcode.app after starting any of the Xcode tools in this bundle may cause iOS Simulator to no longer be available. Rename Xcode.app will return to what it was when you first started or rebooted your Mac. (16646772)

+1
source

If you open the Watch Kit project in lower versions of Xcode (6.1 and below), you will not get the simulator settings.

Not sure if you did the same, but I just watched it today.

0
source

Source: https://habr.com/ru/post/1207300/


All Articles