Last active
December 25, 2015 00:19
-
-
Save cbess/6886302 to your computer and use it in GitHub Desktop.
Links iOS 6 SDK into Xcode SDKs. Allowing you to build/link against iOS 6.x within Xcode 5.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# links the Xcode4.6.x 6.1 SDK to Xcode5 sdks | |
# by C. Bess (2013) | |
# For simulators run (ex: iOS 6 sdk/app in iOS 7 simulator): | |
# - Works if you haven't installed iOS 6 sdk yet | |
# ln -s Xcode-4.6.3.app/.../iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk Xcode.app/.../iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk | |
echo Linking iOS 6 SDK to Xcode 5 | |
# name of the Xcode bundles (in Applications) | |
XCODE_463_APP=Xcode_4.6.3.app | |
XCODE_5_APP=Xcode5.app | |
# full path to the Xcode 4 SDKs | |
IOS6_SDK_PATH=/Applications/$XCODE_463_APP/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk | |
# go to the Xcode5 SDK directory | |
XCODE_5_SDK_PATH=/Applications/$XCODE_5_APP/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs | |
# link sdk in the Xcode 5 dir, if symlink isn't there | |
if [ ! -d $XCODE_5_SDK_PATH ] | |
then | |
sudo ln -s $IOS6_SDK_PATH $XCODE_5_SDK_PATH | |
fi | |
echo Done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment