-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathxcodehelp.txt
More file actions
34 lines (22 loc) · 1.66 KB
/
Copy pathxcodehelp.txt
File metadata and controls
34 lines (22 loc) · 1.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
You are here either because you don't have Xcode 5+ installed, don't have xcode-cli installed, or both.
If you already have Xcode 5+ installed but not xcode-cli, try:
xcode-select --install
If you need to update Xcode, please update it.
If you need to install Xcode, please read below:
Be aware, this download takes forever (>= 5 hours). You will need an Apple Developer account (free) to sign in.
You should use curl from the command line to download XCode since it permits resuming from partial downloads,
and is faster.
Make sure you set System Preferences -> Energy Saver to PREVENT computer from sleeping when display turns off.
After installing Xcode run the following to agree to the Xcode licenses:
sudo xcodebuild
You will need a cookie exporter:
Firefox - https://addons.mozilla.org/en-US/firefox/addon/cookie-exporter/
Chrome - https://chrome.google.com/webstore/detail/cookiestxt/njabckikapfpffapmjgojcnbfjonfjfg?hl=en
After signing in to the Apple developer site, export your cookies to the folder you want to download
XCode into and name them "cookies.txt" Then, use the following command:
curl --cookie cookies.txt -O -C - http://adcdownload.apple.com/Developer_Tools/Xcode_7.2/Xcode_7.2.dmg
--cookie cookies.txt: tells curl to look in cookies.txt for cookies
-O: tells curl to name the output file identically to its name on the remote host (so we'll save this file as Xcode_7.2.dmg)
-C : (note the space after the C) tells curl to resume automatically from the last point in the file, the space indicates
we want curl to figure out the byte offset instead of specifying one ourselves
- url: (note the space after the -) tells curl where to fetch the file from