10
votes

I want to know if anyone could suggest that how can I create Simulator build for Apple Watch. I'm following the steps in this [link to create simulator build](https://developers.facebook.com/docs/iOS /creating-iOS -simulator-build-for-review)

but if we use command like xcodebuild -showsdks It only showing iPhone Simulator.

Though I've created simulator build using these command for project having target for Apple Watch, but it do not run on watch simulator.

So, it will be helpful if anyone could suggest how to create Simulator build for Apple Watch.

2

2 Answers

4
votes

Since your WatchKit app and extension are part of your iPhone app you just need to create simulator build for your iPhone app. Then when you install your iPhone app in the iPhone simulator it will also install your WatchKit app on the watch.

If you just want to run your app on the Apple Watch from Xcode then you can just select your WatchKit app in the list of schemes and then build & run. You will need to enable to Apple Watch display as Pablo A. mentions.

1
votes

Go to the simulator (iOS 8.2 or greater) and

Hardware - External Displays - Apple Watch