xcode OSX 10.10 Yosemite 上的 iOS 6.1 模拟器

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/26637260/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 06:02:27  来源:igfitidea点击:

iOS 6.1 simulator on OSX 10.10 Yosemite

iosxcodemacosios-simulatorios6.1

提问by Douglas Nassif Roma Junior

I am developing an application based on iOS 6.1, and after upgrading to OSX Yosemite can not run the simulator.

我正在开发基于 iOS 6.1 的应用程序,升级到 OSX Yosemite 后无法运行模拟器。

I've been reading on stackoverflow, and some people say that OSX 10.10 no longer supports iOS 6, only 7 and 8.

我一直在看stackoverflow,有人说OSX 10.10不再支持iOS 6,只支持7和8。

I chose to develop on iOS 6 because of the large amount of users that still use this version.

我选择在 iOS 6 上开发,是因为仍有大量用户在使用这个版本。

I've seen this topic In OS X 10.10 (Yosemite Beta), How do I Test Using iOS 6.1 Simulator?

在 OS X 10.10 (Yosemite Beta) 中看到过这个主题,如何使用 iOS 6.1 模拟器进行测试?

But I would like an opinion on the path to be taken.

但我想对要采取的道路发表意见。

I return to OSX 10.9 Maverick, or advance to iOS 7.1?

我返回 OSX 10.9 Maverick,还是升级到 iOS 7.1?

Thank you in advance.

先感谢您。

回答by Jeremy Huddleston Sequoia

iOS Simulator runtimes older than iOS 7.1 will not work on OS X Yosemite.

早于 iOS 7.1 的 iOS 模拟器运行时将无法在 OS X Yosemite 上运行。

You can still build your apps to support older iOS versions by setting an older deployment target, but you will not be able to test them on a simulated device running on OS X Yosemite. You can test on a physical device running iOS 6.1, or you can run Xcode 5.1.1 in OS X Mavericks to test your project in the older simulator.

您仍然可以通过设置较旧的部署目标来构建您的应用以支持较旧的 iOS 版本,但您将无法在运行在 OS X Yosemite 上的模拟设备上测试它们。您可以在运行 iOS 6.1 的物理设备上进行测试,也可以在 OS X Mavericks 中运行 Xcode 5.1.1 以在旧模拟器中测试您的项目。

This is not just an arbitrary requirement. This is a limitation of the legacy runtimes not being able to run on the newer host OS versions. The main reason support for sim versions get dropped in new releases is that they just don't work on the new OS versions for one reason or another and would require either major updates to the simulated runtime itself or hacky (performance-costing) workarounds added to the host OS to support them.

这不仅仅是一个随意的要求。这是旧版运行时无法在较新的主机操作系统版本上运行的限制。在新版本中放弃对 sim 版本的支持的主要原因是,由于某种原因,它们不能在新的操作系统版本上运行,并且需要对模拟运行时本身进行重大更新或添加 hacky(性能成本)解决方法到主机操作系统以支持它们。

Over the past 5 years or so, we've pushed the interface layer between the host and sim lower and lower, reducing it now to probably the smallest that we can accomplish with the current model.

在过去 5 年左右的时间里,我们将主机和 sim 之间的接口层推得越来越低,现在将其减少到我们可以用当前模型完成的最小。