XCode 5.0.1 and iOS 5.1 simulator issue

若如初见. 提交于 2019-11-27 02:02:56

问题


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?

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


回答1:


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.

/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



回答2:


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):

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.

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




回答3:


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




回答4:


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

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

Apple document for Xcode 5



来源:https://stackoverflow.com/questions/19540739/xcode-5-0-1-and-ios-5-1-simulator-issue

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!