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.
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.
Go to the simulator (iOS 8.2 or greater) and
Hardware - External Displays - Apple Watch
Related
Is there any means to script/automate Apple Watch app? I tried using instruments for automation, however it did not seem to work, i also could not automate using xctest , using xctest it just launches the iphone app, when trying to record and the watch app is not launched. did anybody here automate an apple watch app?
I am trying to create enterprise build for apple watch project by xcode 6.3
I tried to build by archive and by auto-build (shenzhen tool)
When I run it at iPhone, it crashes immediately but with ad-hoc build it's work fine.
I've found that Xcode Automatic selections do not work properly for code signing and provisioning profile when used with Apple Watch; sometimes it makes the wrong choice and you only notice when it has problems installing and launching.
For each of the App, App Extension, and Watch App, select the code signing certificate and provisioning profile explicitly (not automatic) in the pop up list.
For issues upon launch on the device (from spring board) the device console gives good information. Install iOS Console, from lemonjar.com to easily see such information.
I just downloaded a code pack from github. But there is no choice to run the app on simulator and I can only choose to run on iOS device. Why does this happen? Can I make any change to enable it to run in simulator?
Thanks!
I cannot start iOS Watch App on simulator. Installed latest Beta 6.2 on Yosemite
1) I create a single view based application,
2) Add App Watch target
3) Extension and Watch App automatically created
4) Run App and start simulator and enable Apple Watch simulator
5) Switch Scheme to app Watch App and start Run
Xcode status bar showing Running App...... and never jumping to second step of
Running App extension, so nothing is showing on Apple Watch!!
1. Select you "... Watch App" Run it on iPhone 5 simulator and higher
(watch simulator not working with iPhone 4s)
2. Go to Hardware > External Displays > Select one of Watch external displays.
As a result you should see the log on the console from your WKInterfaceController WathcKit Extension
I have exactly same problem. I created a new project and added WatchKit extension in Xcode 6.2 beta 4 with WatchKit. I tried all ways mentioned in other answers but still failed to let watch app run in the simulator. Finally, I made it work.
My steps:
Delete the containing app in the iPhone simulator.
Clean your project in Xcode.
Do not run the containing app, run the WatchKit app from Xcode.
1. Dont run main target, run watch extension target. you can find below attachment, so that you can get an idea
2. Go to Hardware > External Displays > Select one of Watch external displays
When i Launch an watch app, it shows the watch app screen that we designed. How can we see the Home screen of an apple watch in the Emulator.
This is not possible, at least not yet.
In Xcode you have to choose which target scheme (app or glance) you want to run in the simulator.
I think Apple does not want to show what the Apple Watch might look like before it is released.
Now possible in Xcode 7! Going to the Home option in the menu under Hardware (Cmd+Shift+H) takes you to the apps view home screen.
Select Watch Simulator->Hardware Menu->Home at any version of XCode after 7.