升级到 Xcode 8 后,iPhone 4 和 iPhone 4s 模拟器消失了。我该如何找回它们?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/39549111/
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
The iPhone 4 and iPhone 4s simulators disappeared after upgrading to Xcode 8. How do I get them back?
提问by nomad
I have these iPhone simulators:
我有这些 iPhone 模拟器:
- iPhone 5
- iPhone 5s
- iPhone 6
- iPhone 6 Plus
- iPhone 6s
- iPhone 6s Plus
- iPhone 7
- iPhone 7 Plus
- iPhone SE
- iphone 5
- iPhone 5S
- iPhone 6
- iPhone 6 加
- iPhone 6s
- iPhone 6s Plus
- iPhone 7
- iPhone 7 加
- iPhone SE
What happened to the iPhone 4 and iPhone 4s?
iPhone 4 和 iPhone 4s 发生了什么?
回答by pedrouan
1)You have to downloadat least iOS 8.x, 9.x SDKsto be able to run iPhone 4S simulator.
1)您必须至少下载iOS 8.x、9.x SDK才能运行 iPhone 4S 模拟器。
2)Your deployment target should remain at least 9.xto see iPhone 4S simulator in the list of offered simulators in your project.
2)您的部署目标应至少保持为 9.x,才能在您的项目中提供的模拟器列表中看到 iPhone 4S 模拟器。
I have an Xcode 8 and these simulators available:
我有一个 Xcode 8 和这些模拟器可用:
回答by Cristian Mora
Xcode 8 includes simulator from iPhone 5 & higher with default deployment target 10.0, but you can add a new simulator.
Xcode 8 包含 iPhone 5 及更高版本的模拟器,默认部署目标为 10.0,但您可以添加新模拟器。
1.) Change "iOS Deployment target 10.0" to 9.3
1.) 将“iOS 部署目标 10.0”更改为 9.3
2.) In "iOS Simulators" Choose Download simulators
2.) 在“iOS Simulators”中选择下载模拟器
3.) Simulator downloading like this:
3.) 模拟器下载如下:
Select the simulator that you will need.
选择您需要的模拟器。
4.) Wait for it to be downloaded.
4.) 等待它被下载。
5.) Add new simulator.
5.) 添加新的模拟器。
6.) Enjoy =D
6.) 享受 =D
回答by Amod Gokhale
iOS10 will not support iPhone 4 or iPhone 4s. Hence it's removed by apple from Xcode8.
iOS10 将不支持 iPhone 4 或 iPhone 4s。因此它被苹果从 Xcode8 中删除了。
If you still want to use 7.1 ( copy the disk image from Xcode 7 ). This will work but not sure if it's allowed to do so .
如果您仍想使用 7.1(从 Xcode 7 复制磁盘映像)。这会起作用,但不确定是否允许这样做。
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/7.1
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/7.1
回答by berezhnyi oleksandr
I have found a quick solution - use an iPad simulator. It mimics screen size of iPhone 4. If you have a universal app - disable this feature temporary (open your target -> select 'General' tab -> scroll down to 'Deployment Info' section -> click on 'Devices' dropdown -> select 'iPhone').
我找到了一个快速解决方案 - 使用 iPad 模拟器。它模仿 iPhone 4 的屏幕大小。如果您有通用应用程序 - 暂时禁用此功能(打开您的目标 -> 选择“常规”选项卡 -> 向下滚动到“部署信息”部分 -> 单击“设备”下拉列表 ->选择“iPhone”)。