2012-05-07 53 views
1

可能重複:
how can I change ios sdk?如何改變iPhone模擬器SDK

是否有其他的方式來改變的iOS模擬器SDK的硬件 - >版本?

感謝您的幫助。

編輯: 最後我使用AppleScript得到它

set selectedVersion to "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk" 

set thePListFolderPath to path to preferences folder from user domain as string 
set thePListPath to thePListFolderPath & "com.apple.iphonesimulator.plist" 
tell application "System Events" 
tell property list file thePListPath 
tell contents 
set value of property list item "currentSDKRoot" to selectedVersion 
end tell 
end tell 
end tell 

回答

0

是的,如果你已經安裝了ISD,然後去項目/目標,並與3.0選擇目標,所有的模擬器將在這裏顯示和你的申請將被針對性所需版本

下載SDK,去xocde> downloadds

4

不完全知道你想要了進來是什麼?

您可以在Xcode預設安裝其他模擬器:

Xcode Preferences: Downloads

如果你想測試在iOS 4.3或5.0您的應用程序,您需要將您的部署目標設置爲所需的版本。如果將部署目標設置爲4.3,則可以使用運行iOS 4.3,5.0或5.1的Simulator進行測試。

+0

我已經安裝了所有模擬器,部署目標設置爲4.3。我想用一些AutomatedTests的各種模擬器SDK來啓動我的應用程序。 –

+0

不幸的是,你一次只能運行一個模擬器。 – runmad

+0

我知道。我想更改兩個jenkins測試之間的模擬器SDK,我不知道我能做什麼 –