Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Simulator build for Apple Watch

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.

like image 541
Amit Singh Avatar asked Apr 08 '15 13:04

Amit Singh


2 Answers

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.

like image 197
Stephen Johnson Avatar answered Oct 14 '22 16:10

Stephen Johnson


Go to the simulator (iOS 8.2 or greater) and

Hardware - External Displays - Apple Watch

like image 1
Pablo A. Avatar answered Oct 14 '22 17:10

Pablo A.