Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 7.0 Beta fails to launch a watchOS 2 App on Apple Watch

Tried a public sample code project and my own project. Observe no problem with watchOS 1.

watchOS 2 App installs and operates successfully on the real Apple Watch and the simulator, but it won't support the debug mode launching the app on the device by Xcode.

Tried to allow the system to create the Provisioning files and manually create the Provisioning files for the development mode.

Test on 10.10, 10.11.

Steps to Reproduce:

  1. Set up the Provisioning files on build settings, watchOS 2 environment and etc.

  2. Go to the scheme on the left top of the Xcode 7.0 beta and choose the iPhone and Apple Watch device.

  3. Wait... the WatchKit App seems to be installed on Apple Watch, but the screen remains blank.

  4. The Play button on the Xcode is activated after the click. Wait 1 minute. It will be turned off without any warning.

Expected Results:

The WatchKit App will be launched on the Apple Watch.

Actual Results:

The screen remains blank.

Version:

watchOS 2 + iOS 9 (released on June 23, 2015)

Here is a similar case, but in this case there is no error message and plugging the devices directly to a Mac and rebooting all devices won't solve it.

Thank you

like image 765
Kevin Avatar asked Jul 06 '15 23:07

Kevin


People also ask

How do I run Xcode app on Apple Watch?

As per apple documentation, first build and run your application on iPhone which contains ipa file for both iphone and iwatch as extension and then select watch app target and run from xcode it will launch app on iWatch.

Can Apple Watch Series 2 be updated to watchOS 7?

Compatibility. watchOS 7 can be installed on Apple Watch Series 3, Series 4, Series 5, Series 6, and SE models. It is not compatible with the original first-generation Apple Watch, Apple Watch Series 1, or Apple Watch Series 2.

Why can't I open an app on my Apple Watch?

Restart your Apple Watch But it may fix such app freezing and crashing issues. To restart your Apple Watch, long press the side button and drag the power off slider to the right. After waiting for a minute or so, press the same side button to power on the watch.


1 Answers

Release note of Xcode 7.0 Beta 3

You may experience installation errors and issues when deploying your app to a watchOS 2 device or Watch simulator.

Workaround: Try the following methods.

  1. If an error sheet listing some FBS error shows up, just run again.

  2. Delete the iOS app an run again.

  3. Ensure that the ‘Show App on Apple Watch’ is selected in the Apple Watch app for device.

  4. Restart Xcode, the Watch and the iPhone devices/simulators.

  5. Reset the Simulator and Simulator (Watch). To reset the simulators, select the menu, Simulator -> Rest Content and Settings. Then quit them and let Xcode restart them when you Run.

  6. Restart your computer after trying the steps above if necessary.

The Watch simulator may stop taking input after a reset or reboot. If it doesn’t respond to the Home button, quit and restart the Watch simulator application. (21135676)

• If the watch never displayed the trust dialog or don't trust was selected then when you try to Build & Run on the watch, the Debug Navigator will remain empty and not show the '(e) com.xxx.xxx waiting to attach' item. Workaround: Disconnecting the iPhone from the Mac and reconnecting it should cause the trust prompt to appear on the Apple Watch.

If it still doesn't show then reboot the Apple Watch. A last workaround would be to un-pair the Apple Watch and re-do the pairing with the iPhone.

See the full details here

It didn't address the problem directly, at least I know they are working on the similar issues, probably will fix it in the future stable release. (Tried all the methods above and failed mostly to resolve this issue)

like image 68
Kevin Avatar answered Oct 03 '22 00:10

Kevin