Created
June 12, 2014 19:09
-
-
Save wayneburkett/0d353b92949bed6a3de1 to your computer and use it in GitHub Desktop.
Link SDKs in one version of XCode to another (when more than one version of XCode is installed)
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
# Usage: ./xcode_sdk_link.sh /Applications/Xcode-<old_version>.app | |
platforms_path="$1/Contents/Developer/Platforms"; | |
if [ -d $platforms_path ]; then | |
for platform in `ls $platforms_path` | |
do | |
sudo ln -sf $platforms_path/$platform/Developer/SDKs/* $(xcode-select --print-path)/Platforms/$platform/Developer/SDKs; | |
done; | |
fi; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment