4 | | |
5 | | === Upgrading to Xcode 4.3 === |
6 | | |
7 | | If you are upgrading to Xcode 4.3, you must [[BR]] |
8 | | 1. select the new Xcode |
9 | | {{{ |
10 | | `sudo xcode-select -switch /Applications/Xcode.app` |
11 | | }}} |
12 | | 1. launch Xcode once to accept its license, |
13 | | {{{ |
14 | | `open /Applications/Xcode.app` |
15 | | }}} |
16 | | 1. In Xcode, go to "Xcode > Preferences > Downloads > Components > Command Line Tools" and install it, or [http://connect.apple.com/cgi-bin/WebObjects/MemberSite.woa/wa/getSoftware?bundleID=21047 download it separately]. |
17 | | 1. Edit macports.conf |
18 | | {{{ |
19 | | `sudo nano ${prefix}/etc/macports/macports.conf` |
20 | | }}} |
21 | | and change |
22 | | {{{ |
23 | | #developer_dir /Developer |
24 | | }}} |
25 | | to |
26 | | {{{ |
27 | | developer_dir |
28 | | }}} |
| 4 | If you are only upgrading XCode (e.g. 4.1 to 4.2 on Lion) but not the major OS version or CPU architecture, you do not need to reinstall ports as described below. |