Created
August 4, 2016 14:38
-
-
Save davbeck/5d9c56f95f8d1dfeb09789326745d24a to your computer and use it in GitHub Desktop.
Xcode switching
This file contains 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
#!/usr/bin/env bash | |
rm -rf /Users/davbeck/Library/Developer/Xcode/DerivedData | |
osascript -e 'quit app "Simulator"' | |
osascript -e "tell application \"Xcode\" | |
close every window | |
end tell" | |
osascript -e 'quit app "Xcode"' | |
sudo xcode-select -s /Applications/Xcode.app | |
cp -av ~/XcodeBackup/Plug-ins ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins | |
open /Applications/Xcode.app |
This file contains 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
#!/usr/bin/env bash | |
rm -rf /Users/davbeck/Library/Developer/Xcode/DerivedData | |
osascript -e 'quit app "Simulator"' | |
osascript -e "tell application \"Xcode\" | |
close every window | |
end tell" | |
osascript -e 'quit app "Xcode"' | |
sudo xcode-select -s /Applications/Xcode-Beta.app | |
rm -rf ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins | |
open /Applications/Xcode-Beta.app |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment