Retrieving SDKs: Difference between revisions

From iPhone Development Wiki
m (Added in another link for SDKS)
(→‎Retrieving without a Mac: Bring this into the late-2010s a tiny bit)
Line 2: Line 2:


== Retrieving without a Mac ==
== Retrieving without a Mac ==
The legal way to download an SDK without access to a Mac is to download a disk image (DMG) of Xcode from Apple. These are available at [https://developer.apple.com/downloads/index.action developer.apple.com] (free developer registration required). Usually the latest SDK is best, but if you want an older version, find the Xcode version containing it from [https://en.wikipedia.org/wiki/Xcode#Versions_compare_table this table].  
The legal way to download an SDK without access to a Mac is to download a copy of Xcode from Apple. These are available at [https://developer.apple.com/downloads/index.action developer.apple.com] (free developer registration required). Usually the latest SDK is best, but if you want an older version, find the Xcode version containing it from [https://xcodereleases.com/ this table].  


Most programs such as 7-Zip seem to be unable to extract recent Xcode DMGs. A shareware program, [http://www.acutesystems.com/scrtm.htm TransMac], can successfully do this on Windows. Open the DMG in the program, then use the left directory tree to navigate to <code>xcode.dmg/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs</code>. Right-click the SDK directory and choose "Copy To".
A shareware program, [http://www.acutesystems.com/scrtm.htm TransMac], can extract Xcode DMGs on Windows. Open the DMG in the program, then use the left directory tree to navigate to <code>xcode.dmg/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs</code>. Right-click the SDK directory and choose "Copy To".


Alternatively, grab a copy from [https://sdks.website here].  If you can't find the up-to-date version there, some of the newer SDKs can also be found [http://resources.airnativeextensions.com/ios/ here].
Alternatively, grab a copy from [https://sdks.website here].  If you can't find the up-to-date version there, some of the newer SDKs can also be found [http://resources.airnativeextensions.com/ios/ here].
''Expansion needed: How can modern Xcode .xip releases be extracted on Windows/Linux?''


=== Troubleshooting ===
=== Troubleshooting ===


As of iOS 8, some people found that those instructions didn't work with the latest version of TransMac (version 11), but version 10.6 may work.
As of iOS 8, some people found that those instructions didn't work with the latest version of TransMac (version 11), but version 10.6 may work.

Revision as of 11:57, 6 July 2021

SDKs (Software Development Kits) are bundles that contain headers, binaries, and other tools needed to build for a specific version of iOS. These can be found within Xcode at Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs.

Retrieving without a Mac

The legal way to download an SDK without access to a Mac is to download a copy of Xcode from Apple. These are available at developer.apple.com (free developer registration required). Usually the latest SDK is best, but if you want an older version, find the Xcode version containing it from this table.

A shareware program, TransMac, can extract Xcode DMGs on Windows. Open the DMG in the program, then use the left directory tree to navigate to xcode.dmg/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs. Right-click the SDK directory and choose "Copy To".

Alternatively, grab a copy from here. If you can't find the up-to-date version there, some of the newer SDKs can also be found here.

Expansion needed: How can modern Xcode .xip releases be extracted on Windows/Linux?

Troubleshooting

As of iOS 8, some people found that those instructions didn't work with the latest version of TransMac (version 11), but version 10.6 may work.