Xcode 8,无法配对观看模拟器 [英] Xcode 8, cannot pair watch simulator

查看:141
本文介绍了Xcode 8,无法配对观看模拟器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在运行Xcode 8 beta5.我的应用程序具有手表扩展名.我无法将iPhone模拟器与手表模拟器配对.我已按照配对说明(Xcode,Window,Devices)进行操作,但其中未列出手表模拟器,当我选择任何iPhone模拟器时也未列出任何手表模拟器.我尝试了Add Simulator的变体,但是我只得到了更多的iPhone模拟器-我从没看到手表模拟器或配对.手表模拟器存在-我可以启动模拟器,但它没有配对.我尝试删除Xcode并重新安装. Beta 4也有同样的问题.

I'm running Xcode 8 beta 5. My app has a watch extension. I cannot pair the iPhone simulator with the watch simulator. I've followed the instructions for pairing (Xcode, Window, Devices) but there are no watch simulators listed there, nor are any listed when I select any of the iPhone simulators. I've tried variations of Add Simulator, but I only get more iPhone simulators -- I never see a watch simulator or a pairing there. The watch simulator exists -- I can launch the simulator, but it isn't paired. I've tried deleting Xcode and re-installing. Same issue with beta 4.

在设备"中选择iPhone模拟器后,如何显示手表模拟器?

How do I get the watch simulator to appear when I select an iPhone simulator in Device?

更新:需要明确的是,这些是Apple的将Apple Watch模拟器替换为iPhone模拟器"的说明(

UPDATE: To be clear, these are Apple's instructions for "Pairing Apple Watch Simulators to iPhone Simulators" (https://developer.apple.com/library/ios/recipes/xcode_help-devices_organizer/PairingWatchestoiPhoneSimulators/PairingWatchestoiPhoneSimulators.html)

  1. 在模拟器"下的设备"窗口中,选择iPhone 5和更高版本的模拟器.

  1. In the Devices window under Simulators, select an iPhone 5 and later simulator.

在配对的手表"表下,单击添加"按钮(+).

Under the Paired Watches table, click the Add button (+).

我从没见过配对表",所以没有添加"按钮.

I never see the "Paired Watches table" so there's no Add button.

我确实在Xcode 7中看到了这样的内容: 更新2: 在Xcode 8 beta 6中,配对的手表"表出现在设备"窗口中,但是配对仍然失败,并出现模拟器未配对"对话框.

I do see that in Xcode 7, like this: UPDATE 2: In Xcode 8 beta 6, the Paired Watches table appears in the Devices window, but the pairing still fails with a "Simulator Not Paired" dialog.

推荐答案

我发现了两种方法来处理多个同名的模拟器:

I found two ways to deal with the multiple, identically-named simulators:

  1. "Xcode设备"窗口:为特定的iPhone设备创建一个新的手表模拟器,并为其指定一个唯一的名称(例如"test3").启动手表模拟器时,请在手表的硬件",设备"菜单中选择该模拟器.



  1. Xcode:在Xcode的活动方案"下拉菜单中选择并运行iPhone应用程序,然后在活动方案"中选择并运行WatchKit应用程序.这些操作中的每一个都会启动正确配对的模拟器,即使名称不明确也是如此.

 

这篇关于Xcode 8,无法配对观看模拟器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆