Xcode 9 没有任何模拟器设备
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/44473923/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Xcode 9 doesn't have any simulator device
提问by sahara108
I just downloaded xcode 9 beta, but there is no simulator within it. Try to add new simulator but the create button doesn't work. Please help
我刚刚下载了 xcode 9 beta,但里面没有模拟器。尝试添加新模拟器,但创建按钮不起作用。请帮忙
By "no simulator within it" I mean there is option to build with simulator.
“其中没有模拟器”是指可以选择使用模拟器进行构建。
回答by badhanganesh
回答by Rashwan L
It is a simulator but you need to close Xcode 8if you have it open and restart Xcode 9 beta.
它是一个模拟器,但如果您打开它并重新启动Xcode 9 beta,则需要关闭Xcode 8。
回答by Santosh Sahoo
This may happen due to multiple Xcode installed on machine or might be the deployment target is higher than the simulator OS version.
这可能是由于机器上安装了多个 Xcode,或者可能是部署目标高于模拟器操作系统版本。
In order to resolve this navigate to following location : Xcode > Preference > location > comindline Tool > change the xcode version
为了解决这个问题,请导航到以下位置:Xcode > Preference > location > comindline Tool > change the xcode version
and decrease the deployment target.
并减少部署目标。
回答by Paul Solt
You may have removed iOS Simulators when you cleaned up disk space. I think I may have used DaisyDisk to remove files when I ran out of space.
您可能在清理磁盘空间时删除了 iOS 模拟器。我想我可能在空间不足时使用 DaisyDisk 来删除文件。
You can re-add simulators using the Devices & Simulators window. (Shift + Command + 2)
您可以使用设备和模拟器窗口重新添加模拟器。(Shift + 命令 + 2)
回答by Saleh Enam Shohag
When my xcode updated to 9.4 I face the same problem at first time. After force quit and start again solve the problem for me.
当我的 xcode 更新到 9.4 时,我第一次遇到了同样的问题。强制退出后重新开始为我解决问题。
回答by Dilip Jangid
If you upgraded Xcode then follow the steps
如果您升级了 Xcode,请按照以下步骤操作
1) Delete derived data,
Xcode-> Preferences -> Locations and select arrow symbol just before Advance button -> select all files and delete.
2) Quite Xcode
3) Quite Xcode from Dock
4) Open Xcode again.
:-) Hope this will help you.
:-) 希望能帮到你。
回答by Mike Dobrowolski
Having a higher deployment target than what is installed on your simualtors also causes this.
部署目标高于模拟器上安装的目标也会导致这种情况。
回答by pooja majoka
Ensure your Deployment Target version in Build Settings is also set to the desired version (and that you have that version of the respective simulator installed). Suppose, if that were set to 10.3 and I didn't have an iOS 10.3 simulator installed, I wouldn't be able to see any simulators. But because it's set to 10.1, and I have 10.1 simulators installed, I can see them.
确保 Build Settings 中的 Deployment Target 版本也设置为所需版本(并且您安装了相应模拟器的该版本)。假设,如果将其设置为 10.3 并且我没有安装 iOS 10.3 模拟器,我将看不到任何模拟器。但是因为它设置为10.1,并且我安装了10.1模拟器,所以我可以看到它们。
回答by Antonin Charvat
Delete the derived data, close all your running Xcodes and restart your computer. It just helped me.
删除派生数据,关闭所有正在运行的 Xcode,然后重新启动计算机。它只是帮助了我。
回答by Elardus Erasmus
Apart from the simulators not showing, my project's storyboard was messed up also after upgrading to XCode 9. I simply restarted XCode and voila! Did not have to delete derived files - though it would probably not hurt.
除了模拟器没有显示,升级到 XCode 9 后,我的项目的故事板也搞砸了。我只是重新启动了 XCode,瞧!不必删除派生文件 - 尽管它可能不会受到伤害。