Can a real iOS device and Watch Simulator communicate for Testing purposes

心不动则不痛 提交于 2020-01-02 01:16:05

问题


I want to create a watch app for an existing iOS app.

But I am in a situation that i don't own a apple watch and my existing iOS app will run only on real devices not on simulator.

Is it possible to run the app on the iphone device and test my watch app in the watch simulator?


回答1:


Pairing a real iPhone and a Watch simulator is not possible at least at the moment. I make this conclusion because of 3 reasons:

  1. A Watch simulator automatically pairs to an iPhone simulator during the installation process.
  2. It is not possible to unpair a Watch simulator from the interface at all.
  3. Bluetooth is not accessible on a simulator to communicate with real devices. Here's a proof.


来源:https://stackoverflow.com/questions/32734358/can-a-real-ios-device-and-watch-simulator-communicate-for-testing-purposes

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!