- If you don't have a free Apple developer account, register for one
- Download the "Xcode" appropriate for your version of OSX
- Copy the dmg file to your remoteIn the following command, I'm using scp to securely copy the file from my local computer to the remote named
remote
$ scp ~/Downloads/Xcode_7.dmg remote:Downloads/
- ssh to your remote
$ ssh remote
- mount the dmg file on the remoteHere, I'm using hdiutil to mount the image
$ hdiutil attach ~/Downloads/Xcode_7
.dmg - Copy the Xcode.app to Applications folder
$ cp /Volumes/Xcode/Xcode.app /Applications
- unmount the dmg file
$ hdiutil detach /Volumes/Xcode
- delete the dmg file from the remote; optionalI see no purpose keeping it around, but you can if you want.
$ rm ~/Downloads/Xcode_7.dmg
- Use the below to agree to the Xcode/iOS license:
sudo xcodebuild -license
- Check and specify current the Xcode:
Current Xcodexcode-select -p
Specifysudo xcode-select -s /Applications/Xcode7.0.app
Monday, April 11, 2016
[Jenkins] Install Xcode over SSH on Jenkins build server
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment