How do I install the iOS 4.3 Simulator on Xcode 4.

2019-02-05 02:36发布

I have Xcode 4.5 installed via the App Store, and it has iOS 5.1 and 6.0 support, but not iOS 4.3. Nor is it available for download in the "Downloads" tab of Preferences. I tried grabbing it from another computer and putting it on this one, as described by Dominik Porada, but alas that did not work. Maybe there are other files I need? How do I get the iOS 4.3 SDK back?

2条回答
Summer. ? 凉城
2楼-- · 2019-02-05 02:48

I actually did get 4.3 to appear in the Xcode 4.3 menu just by copying the iPhoneSimulator4.3.sdk file to the Xcode.app package, as described by Dominik Porada. I think I just had to restart Xcode again, and there it was!

But it doesn't work. As pointed out in the answers to this question, iOS 4.3 is not supported on Mountain Lion. Might work fine for Lion, though.

查看更多
迷人小祖宗
3楼-- · 2019-02-05 02:54

This was the solution to run iOS 5.1 in XCode 4.2. Try following the same procedure. Try copying it from a previous version of XCode.Haven't tried it out myself.But see if it works.

To get Xcode 4.2 on Snow Leopard to run code on a device running iOS 5.1 you can do this:

If you have another Mac running Lion and Xcode 4.3.1 you can copy the files from:

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.1 (9B176)

Place the copied files in the equivalent place on your Snow Leopard Mac: probably

/Developer/Platforms/iPhoneOS.platform/DeviceSupport

Similarly copy the iOS 5.1 SDK files found in this directory:

/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk

Also copy 'version.plist' from the Lion machine in the iPhoneOS.platform folder to the Snow Leopard machine.

Re-start Xcode on the Snow Leopard machine and re-connect the devices and it seems happy enough.

If you don't have access to a machine with Lion and Xcode 4.3.1:

You can get the files out of the 4.3.1 DMG which can be downloaded from Apple here: Downloads for Apple Developers.

Mount the DMG, Show Package Contents on the Xcode icon and drill down to

/Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport

Follow the steps above.

You might find it more convenient to use Apple's proprietary ditto method (sudo ditto src dest) in the terminal window to copy the folders.

查看更多
登录 后发表回答