简体   繁体   English

如何在xcode 7模拟器或设备上运行应用程序?

[英]how to run app on xcode 7 simulator or device?

Before I updated from xcode 6 to 7, it was just right next to the run and stop button. 在我从xcode 6更新到7之前,它就在运行和停止按钮旁边。

在此处输入图片说明

When i just click on the run button, it opens the iphone 5 simulator and from the simulator's menu, if i choose Hardware > device > iphone 6 plus, it's just completely black. 当我只单击运行按钮时,它将打开iphone 5模拟器,并从模拟器的菜单中,如果我选择“硬件”>“设备”>“ iphone 6 plus”,则它完全是黑色的。 If I try to run the app again, it just says that it's running on iphone 5 in Xcode. 如果我尝试再次运行该应用程序,它只是说它正在Xcode的iphone 5上运行。

在此处输入图片说明 在此处输入图片说明

How do I choose a different simulator?? 如何选择其他模拟器? or run on a physical device connected to the macbook? 或在连接到Macbook的物理设备上运行?

This worked seamlessly on xcode6 with the use of the device dropdown menu beside the run and stop button. 通过使用运行和停止按钮旁边的设备下拉菜单,这可以在xcode6上无缝运行。 but now, that menu is gone. 但是现在,该菜单消失了。

Another question: I am unable to find ios9 simulator under preferences > downloads 另一个问题:我在“偏好设置”>“下载”下找不到ios9模拟器

在此处输入图片说明

In one of the pre-versions of Xcode 7 I had the same issue. 在Xcode 7的一个预版本中,我遇到了同样的问题。 The problem was, that there were no simulators installed. 问题是没有安装模拟器。

Go to Xcode -> Window -> Devices a window will pop up. 转到Xcode->窗口->设备,将弹出一个窗口。 Click on the plus button in the bottom left corner and configure some devices. 单击左下角的加号按钮并配置一些设备。

The device selector should show up in Xcode. 设备选择器应显示在Xcode中。

Turns out Xcode did not finish downloading. 事实证明Xcode尚未完成下载。 There was an error when I checked the update. 我检查更新时出现错误。 I made it complete the download and xcode is okay again 我完成了下载,xcode又可以了

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

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