简体   繁体   English

iOS模拟器无法在Xcode 6.3中使用

[英]iOS Simulator not working in Xcode 6.3

I am trying to build an app, but I can't test my app because iOS Simulator isn't working. 我正在尝试构建一个应用程序,但是由于iOS Simulator无法运行,所以无法测试我的应用程序。

When I try to run iOS Simulator, it don't even get a black iPhone screen, the whole iOS Simulator window is black. 当我尝试运行iOS Simulator时,甚至没有看到黑色的iPhone屏幕,整个iOS Simulator窗口为黑色。 I can't get it to show anything. 我无法显示任何内容。 This makes coding an app extremely difficult, especially for a beginner like me. 这使得编写应用程序极其困难,特别是对于像我这样的初学者而言。

Does anyone have any ideas as to why this might happen? 有谁知道为什么会发生这种情况吗? The main interface is set to main.storyboard, and I don't get any errors when I try to run iOS Simulator, it just shows a black screen. 主界面设置为main.storyboard,在尝试运行iOS Simulator时没有出现任何错误,它仅显示黑屏。 Also, when I try to stop it I have to use Cmd+Q because the stop button doesn't work. 另外,当我尝试停止它时,我必须使用Cmd + Q,因为停止按钮不起作用。

Are these two related, and can anyone fix it? 这两个有关系吗,有人可以修复吗?

Screenshot of the problem: 问题的屏幕截图:

http://hostthenpost.com/uploads/4d2e2cb62d6f03a7f330affc90276f3b.png http://hostthenpost.com/uploads/4d2e2cb62d6f03a7f330affc90276f3b.png

Computer specs: Mac Mini (Late 2014) running OS X Yosemite 10.10.3 and Xcode 6.3. 计算机规格:运行OS X Yosemite 10.10.3和Xcode 6.3的Mac Mini(2014年末)。

I had to quit Xcode and relaunch it after upgrading to 6.3 before my simulator would work. 升级到6.3之后,我必须退出Xcode并重新启动它,然后模拟器才能正常工作。 Also make sure you quit the simulator. 另外,请确保您退出模拟器。 The old Xcode 6.2 simulator is likely not compatible with 6.3 旧的Xcode 6.2模拟器可能与6.3不兼容

I figured it out! 我想到了! I just have to wait a thousand years for it to load, and then it works fine. 我只需要等待一千年就可以加载它,然后它就可以正常工作了。

尝试重新启动Mac,然后尝试运行模拟器。

重新启动Mac可以帮助我解决此问题。

I know the above (or below) solutions all probably work, but I found a way to fix the issue that might be a little faster than restarting Xcode, your Mac, or waiting somewhere between 600-1000 years: 我知道上述(或以下)解决方案都可能有效,但是我找到了一种解决此问题的方法,该方法可能比重新启动Xcode,Mac或等待600-1000年之间要快一些:

If you change the scale size of the iPad ( Window > Scale ) it seems to fix the issue. 如果更改iPad的比例大小(“ Window > Scale ),似乎可以解决此问题。

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

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