How to copy old version of iOS SDK to new version of Xcode?

I have a new version of Xcode. I have an iOS device with a new version of iOS installed on it.

I want to create my application with an old iOS SDK using the new version of Xcode.

How?

+4
source share
3 answers

You do not do this; the contents of the Xcode.app package should not be changed.

Any particular release of Xcode includes the SDK with which it was qualified, and the use of any other SDK with it is not supported.

+27
source

I also had the same issue when I updated xcode 5 by removing the old sdk. But I took a copy of the old SDK from another computer and the same one that you can download from the following link.

http://www.4shared.com/zip/NlPgsxz6/iPhoneOS61sdk.html
(www.4shared.com test account test@yopmail.com / test)

There are two ways to work.

1) Unzip and paste this folder into /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDK and restart xcode.

But this can be removed by Xcode again if you update xcode.

2) Another way is to unzip and paste wherever you want, and go to /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDK and create a symbolic link here so that the SDK remains the same, even if you update Xcode.

Another change I made is Build Customization> Architecture> Standard (not 64), so list all versions of the deployment target

No need to download zip if you want to change the deployment target.

Here are some screenshots. enter image description hereenter image description here

+1
source

This answer is incorrect and its use is not supported by Xcode. I just leave it here for historical reasons.


1. Copy the SDK from the old Xcode to the new Xcode

  • Open the Applications folder.
  • Right-click on the old version of Xcode and select "Show Package Contents."
  • Skip to content β†’ Developer β†’ Platforms β†’ iPhoneOS.platform β†’ Developer β†’ SDK.
  • In a new window, open the same folder inside the new version of Xcode.
  • Copy the SDK you want from old to new.
  • If the new version of Xcode is running, you need to restart it now.

2. Install the SDK when building

In the project settings, select the goal that you are building on the left. Then select Build Settings , then Basic SDK . You should now see two versions of the SDK. Select the SDK you want to create.

-eight
source

Source: https://habr.com/ru/post/1487569/


All Articles