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.
Related
I am trying to use Zombies with my Xcode iOS project. When I click on the red button, I select the simulator I'm using, but then it takes me into what looks like is my mac folders directory. I wonder if I'm supposed to find the "Simulator" app, if there is such a thing. I found in the Library/Developer/CoreSimulator/Runtimes/ three items that say "iOS ..simruntime, but there is not one that represents the iOS version my Simulator is running.
I'm not sure I'm even on the right track. I think I was able to get right as far as clicking the red button while my project is running in simulator. What should I do once I do that and the window appears to select an "app"?
I am using XCode 7 (beta) to write standalone watchOS2 App Extension.
Debugger works fine, so I can use breakpoints for example, but seems to be that NSLog() is not working for the Watch. Note: It works fine on simulator, but doesn't work on device
Whatever I write to NSLog(#"..") is not displayed in Debug Area.
So the question is:
Is this behavior expected or am I doing something wrong? Are there some workarounds to see some debug logs, may be use WatchConnectivity for example?
Thanks in advance!
Until NSLog() works on real watchOS 2 devices I've ended up using -[WCSession sendMessage:replyHandler:errorHandler:] to send log strings from my watchOS 2 app back to my iOS phone app and then NSLog them from my phone app.
Did you try this one?
It's a known issue on developer forum.
You have to unpair and re-pair your watch to trust your computer.
Then you could see NSLog in Debug area.
Is it possible to only have a Glance (Glance Entry Point) in your Apple Watch app, skipping the actual Watch App (Main Entry Point)?
Not at this time, unfortunately. Glances automatically launch the main app when tapped. You'll need an app for it to open.
No. Perhaps Apple might add this feature in the future, but right now, you need an app.
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
I only use the iOS simulator for testing websites, not actual apps. Today I opened it up and it keeps asking me for an app for it to simulate. If I click cancel, it just quits the simulator.
I've tried deleting preference files, but I'm just not familiar enough with the simulator to know what's going on. How can I just get this back to normal, or satisfy this dialog?
I think you could try the menu
iOS Simulator -> Reset Content and Settings...
This would clean your simulator storage.
Update
According to this link, Cleaning up the iPhone simulator
move to path
/Users/<username>/Library/Application Support/iPhone Simulator/{6.0 / 6.1}
You could try to clean it manually