From 2c76410a548341a9e136150c2bf13fd11c3cd7c7 Mon Sep 17 00:00:00 2001 From: _Qubarf Date: Sat, 17 Sep 2022 10:19:39 +0800 Subject: [PATCH] Created Downloading and installing xcode headless + scriptless (markdown) --- ...-installing-xcode-headless---scriptless.md | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Downloading-and-installing-xcode-headless---scriptless.md diff --git a/Downloading-and-installing-xcode-headless---scriptless.md b/Downloading-and-installing-xcode-headless---scriptless.md new file mode 100644 index 0000000..45e3e37 --- /dev/null +++ b/Downloading-and-installing-xcode-headless---scriptless.md @@ -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 +
+ 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`.
+ 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` \ No newline at end of file