XCode 5.0.1 和 iOS 5.1 模拟器问题

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

XCode 5.0.1 and iOS 5.1 simulator issue

xcodesimulator

提问by Bartek

After upgrading XCode to 5.0.1 on Mavericks I can't install iOS 5 simulator, it's removed from Download section... Is it only happening to me or does anyone else has similar issue?

在 Mavericks 上将 XCode 升级到 5.0.1 后,我无法安装 iOS 5 模拟器,它已从“下载”部分中删除...它只发生在我身上还是其他人有类似问题?

enter image description here

在此处输入图片说明

Is it possible to install 5.1 simulator from outside of Xcode Downloads page?

是否可以从 Xcode 下载页面之外安装 5.1 模拟器?

采纳答案by Ramaraj T

I face the same thing when I installed the XCode4.5. Then I copied the SDK from my old xcode to the new xcode. The SDK is located in the following path.

当我安装 XCode4.5 时,我遇到了同样的事情。然后我将 SDK 从我的旧 xcode 复制到新 xcode。SDK位于以下路径。

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk 

 /Applications/Xcode4.5.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk

回答by verhage

Unfortunately, iOS Simulator 5.0 and 5.1 don't work on Mavericks. The reason for this is best explained by gparker on the developer forums (https://devforums.apple.com/message/911139#911139):

不幸的是,iOS Simulator 5.0 和 5.1 不适用于 Mavericks。gparker 在开发者论坛 ( https://devforums.apple.com/message/911139#911139)上最好地解释了原因:

The iOS simulator does not duplicate some of the low-level parts of iOS. For example, it uses the host OS X's kernel instead of trying to virtualize the iOS kernel. The iOS simulator requires that these subsystems look sufficiently similar between the simulated iOS and the host OS X. When a new host OS X changes too much it can break old simulators. At that point somebody makes an engineering and cost decision to either update the old simulator or drop support for it.

iOS 模拟器不会复制 iOS 的一些低级部分。例如,它使用主机 OS X 的内核,而不是尝试虚拟化 iOS 内核。iOS 模拟器要求这些子系统在模拟的 iOS 和主机 OS X 之间看起来足够相似。当新的主机 OS X 变化太大时,它可能会破坏旧的模拟器。那时有人会做出工程和成本决策,要么更新旧模拟器,要么放弃对它的支持。

Not the answer you and I were hoping to find. You could of course run Mountain Lion in Parallels for testing iOS 5.x.

不是你和我希望找到的答案。您当然可以在 Parallels 中运行 Mountain Lion 来测试 iOS 5.x。

回答by digdoritos

iOS Simulator 5.0/5.1 is available only on Mountain Lion. If you're running on Mavericks, you'll only see iOS 6.0/6.1/7.0. iOS5 Simulator on XCode5-GM

iOS Simulator 5.0/5.1 仅在 Mountain Lion 上可用。如果您在 Mavericks 上运行,您将只会看到 iOS 6.0/6.1/7.0。 XCode5-GM 上的 iOS5 模拟器

回答by Jayprakash Dubey

Additional Simulators can be installed from Xcode -> Preference -> Downloads -> Components

可以从以下位置安装其他模拟器 Xcode -> Preference -> Downloads -> Components

enter image description here

在此处输入图片说明

However, in case of Xcode 5.x iOS 5 simulator cannot be installed since Mavericks doesn't allows it.

但是,如果是 Xcode 5.x,则无法安装 iOS 5 模拟器,因为 Mavericks 不允许。

enter image description here

在此处输入图片说明

Apple document for Xcode 5

Xcode 5 的 Apple 文档