首先,你可以下載,另外通過選擇
Xcode->首選項安裝了iOS 5.0模擬器; ![enter image description here](https://i.stack.imgur.com/SQOuY.png)
然後導航到「Downloads」並點擊iOS 5.0 Simulator上的「Install」。
![enter image description here](https://i.stack.imgur.com/EzzMO.png)
THIS IS過時,而且給出了參考
對於較早的Xcode(iPhone模擬器)的版本,它使用的是可能的只是鏈接上了年紀(不支持)iPhoneSimulator SDK-版本到正確的路徑,但似乎已停止工作的山獅下。只是爲了提供一些參考資料,說明如何做到這一點
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs $ ln -s /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk iPhoneSimulatorh4.3.sdk
[email protected] /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs $ ls -la
total 40
drwxr-xr-x 9 root wheel 306 Aug 6 14:59 .
drwxr-xr-x 7 root wheel 238 Jul 26 23:26 ..
lrwxr-xr-x 1 root wheel 83 Aug 6 14:58 iPhoneSimulator3.2.sdk -> /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.2.sdk
lrwxr-xr-x 1 root wheel 83 Aug 6 14:58 iPhoneSimulator4.0.sdk -> /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk
drwxrwxr-x 8 root admin 272 Oct 28 2011 iPhoneSimulator5.0.sdk
drwxr-xr-x 8 root wheel 272 Jul 26 23:26 iPhoneSimulator5.1.sdk
lrwxr-xr-x 1 root wheel 83 Aug 6 14:58 iPhoneSimulatorh4.1.sdk -> /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk
lrwxr-xr-x 1 root wheel 83 Aug 6 14:59 iPhoneSimulatorh4.2.sdk -> /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.2.sdk
lrwxr-xr-x 1 root wheel 83 Aug 6 14:59 iPhoneSimulatorh4.3.sdk -> /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk
[email protected] /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs $
這實際上似乎工作,因爲它會導致模擬器中的以下選項; ![enter image description here](https://i.stack.imgur.com/dJSm7.png)
問題是,在我的機器上,啓動後模擬器停止工作,如果選擇了任何不支持的版本。也許還有一種方法......就是我沒有像以前的操作系統那樣工作。
是的,我也嘗試過。但是應用程序不會在這些較舊的版本上啓動。 – Amit 2012-08-07 04:07:34