简体   繁体   English

在iOS模拟器问题中运行Apple Watch

[英]Running Apple Watch in iOS simulator issue

I'm trying to run the Apple WatchKit Catalog example code in iOS simulator. 我正在尝试在iOS模拟器中运行Apple WatchKit Catalog示例代码

But i have always Apple Watch simulator disabled. 但我一直禁用Apple Watch模拟器。

在此输入图像描述

What i have to do? 我该怎么办?

Apple Watch is only supported with iPhone 5 and newer phones. Apple Watch仅支持iPhone 5和更新的手机。 Make sure you are running a simulated device that supports pairing with an Apple Watch. 确保您运行的是支持与Apple Watch配对的模拟设备。

Go here and click on your app name, in my case it is "watch kit test" 到这里点击你的应用名称,在我的情况下它是“手表套件测试”

Then click on edit scheme and then this view should show up. 然后单击编辑方案,然后应显示此视图。 Make sure to go to executable and click on "yourappname.app 确保转到可执行文件并单击“yourappname.app”

Finally close it and go back to the menu in the first step and click "Your App Name" Watch App 最后关闭它并返回第一步菜单,然后单击“您的应用程序名称”监视应用程序

在此输入图像描述

Then run your app in the simulator, and select any of the following iPhones 5/5c/5s/6/6p 然后在模拟器中运行您的应用程序,并选择以下任何一种iPhone 5 / 5c / 5s / 6 / 6p

You need to to Editor > Add Target > Apple Watch . 您需要Editor > Add Target > Apple Watch

First, you need to select your root folder in Xcode . 首先,您需要在Xcode中选择您的根文件夹

Hope this helps. 希望这可以帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM