2012-08-06 53 views
3

我最近從Xcode 3.2.3升級到Xcode 4.4 + Mountain Lion(爲了測試5.1版本的應用程序iOS版)。但它似乎只支持5.1 iOS模擬器,而不是老版本。是否有可能使用Xcode 4.4 + Mountain Lion與舊版iPhone/iPAD模擬器(3.2,4.0,4.2)一起使用

那麼,是否有可能與Xcode 4.4 + Mountain Lion一起使用舊版iPhone/iPAD模擬器(3.2,4.0,4.2)。

任何人都可以請指導我,如何在舊的模擬器上測試我的應用程序?

謝謝

回答

0

你不能再下載舊的模擬器 - 對不起。 但您可以在首選項中下載舊設備的調試支持。

Xcode - 首選項 - >去下載,然後到組件。在那裏你可以選擇幾個較舊的設備。

4

首先,你可以下載,另外通過選擇

Xcode->首選項安裝了iOS 5.0模擬器; enter image description here

然後導航到「Downloads」並點擊iOS 5.0 Simulator上的「Install」。

enter image description here


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

問題是,在我的機器上,啓動後模擬器停止工作,如果選擇了任何不支持的版本。也許還有一種方法......就是我沒有像以前的操作系統那樣工作。

+0

是的,我也嘗試過。但是應用程序不會在這些較舊的版本上啓動。 – Amit 2012-08-07 04:07:34

1

Xcode 4.4 + Mountain Lion僅支持iOS Simulator 5.0及以上版本。 然而,您可以安裝iOS 3.0和iOS 4.0設備調試支持,以便您仍然可以通過轉到Xcode - >首選項 - >下載 - >組件,在運行iOS 3.0或4.0的設備上測試您的應用程序。

+0

感謝您的回答。是的,我知道設備調試支持。 但是購買所有設備總是很困難,這就是爲什麼尋找模擬器選項。 是的,我確實嘗試將舊的模擬器sdks複製到新的sdks文件夾中,在這些模擬器上運行的選項確實出現在Xcode中,但應用程序無法在模擬器中啓動。 較舊的Xcode版本無法編譯以進行編譯。 此外新Xcode以及模擬器掛起非常頻繁(太糟糕)。 它似乎只是設備調試選項。 但蘋果應該增加了舊的模擬器支持。 – Amit 2012-08-07 04:03:19

相關問題