mirror of
https://github.com/sickcodes/Docker-OSX.git
synced 2024-12-22 05:51:32 -06:00
Created Downloading and installing xcode headless + scriptless (markdown)
parent
8901ffb9d9
commit
2c76410a54
23
Downloading-and-installing-xcode-headless---scriptless.md
Normal file
23
Downloading-and-installing-xcode-headless---scriptless.md
Normal file
@ -0,0 +1,23 @@
|
||||
A bit of a convoluted process but should allow you to download XCode without needing additional scripts and having to setup the appstore
|
||||
|
||||
1. Go [here](https://stackoverflow.com/questions/10335747/how-to-download-xcode-dmg-or-xip-file) and select the xcode version appropriate for your version of mac
|
||||
I was using the pre-setup Catalina docker, so I chose [this version](https://developer.apple.com/services-account/download?path=/Developer_Tools/Xcode_12.4/Xcode_12.4.xip)
|
||||
2. Now if it asks you to sign in, do so and accept the terms and conditions
|
||||
3. Now click the download button and then:
|
||||
- Either download the xip file onto your host OS and transfer via sFTP or other means
|
||||
<br>
|
||||
1. Alternatively, at this point the page should switch to buffering logo and remain stuck there. Use a cookie view (I used the chrome extension `EditThisCookie`) and copy the value for `ADCDownloadAuth`.<br>
|
||||
2. On your guest machine make a file called `cookies.txt` and add the cookie in the form ```.apple.com TRUE / FALSE 1679146596 ADCDownloadAuth [cookie value]```
|
||||
3. I assume you have homebrew installed, download wget and use the command `wget --load-cookies cookies.txt [xip download link]` - ~10gb Xcode.xip should download
|
||||
|
||||
4. Then simply a matter of configuration:
|
||||
|
||||
`xip --expand [xcode.xip]`
|
||||
|
||||
`sudo cp Xcode.app /Applications`
|
||||
|
||||
`sudo rm /Library/DeveloperCommandLineTools && xcode-select -r`
|
||||
|
||||
`sudo xcodebuild -license accept`
|
||||
|
||||
`sudo xcodebuild -runFirstLaunch`
|
Loading…
Reference in New Issue
Block a user