天天看點

xcode4.3 如何手動安裝iPhone simulator 4.3/5.0

随着蘋果更新xcode4.3.1 ,安裝之後發現,隻有iPhone simulator 5.1,開發中平時使用的iPhone simulator 4.3/5.0,沒有了很是不友善。想安裝iPhone simulator 4.3/5.0,還需要從再次網絡下載下傳,網絡下載下傳的速度确實不給力,很是浪費時間。不過現在有了一個好方法,可以從xcode4.2中把iPhone simulator 4.3/5.0的檔案拷貝出來,當然你首先確定你的xcode4.2沒有被你删除。安裝好xcode4.3.1之後,首先,我們前往Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs,你會看到名字為iPhoneSimulator4.3.sdk和iPhoneSimulator5.0.sdk的檔案夾。接下來新減一個Finder視窗,前往/Applications ,在xcode圖示右鍵,顯示包的内容,前往Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs,你會看到名字為iPhoneSimulator5.1.sdk,這個檔案夾是存放iPhoneSimulator的資訊,是以把iPhoneSimulator4.3.sdk和iPhoneSimulator5.0.sdk的檔案夾拖進來(或者複制過來),就可以了。重新開機xcode4.3.1 ,選擇一個是曾經用iPhone simulator 4.3/5.0編譯過的target,你就可以看到可以選擇iPhone simulator 4.3/5.0/5.1,就是這麼簡單!

繼續閱讀