31 | | |
32 | | === Xcode License Agreement === #xcode-eula |
33 | | |
34 | | When attempting to build a port which compiles an OS X app (e.g., gimp-app), the compilation may fail with an xcodebuild error. One of the possible causes of this is that an initial run of xcodebuild from the terminal may be needed to accept the EULA before any compilation can proceed. Run: |
35 | | {{{ |
36 | | xcodebuild -license |
37 | | }}} |
38 | | from a terminal window and follow the prompts. After accepting the EULA, rebuild the port again. |
39 | | |
40 | | With some ports and some versions of Xcode (e.g. libunwind-headers with Xcode 4.4+) you may need to accept the license as root, i.e.: |
41 | | {{{ |
42 | | sudo xcodebuild -license |
43 | | }}} |
44 | | |
45 | | This will need to be repeated after any Xcode upgrade. |
| 290 | |
| 291 | == Xcode License Agreement == #xcode-eula |
| 292 | Starting with Xcode 4.3, compilation of ports could fail if the Xcode EULA wasn't accepted. Run: |
| 293 | {{{ |
| 294 | xcodebuild -license |
| 295 | }}} |
| 296 | from a terminal window and follow the prompts. After accepting the EULA, retry building the port. |
| 297 | |
| 298 | With some ports and some versions of Xcode (e.g. libunwind-headers with Xcode 4.4+ or any version of Xcode 5) you may need to accept the license as root, i.e.: |
| 299 | {{{ |
| 300 | sudo xcodebuild -license |
| 301 | }}} |
| 302 | |
| 303 | This may need to be repeated after any Xcode upgrade. |
| 304 | |
| 305 | {{{#!div class="important" style="background: #99d8c9; border-color: #2ca25f; color: #00441b;" |
| 306 | '''Note:''' MacPorts >= 2.3.0 will print an error message and abort if it detects this situation. The message will read: |
| 307 | {{{ |
| 308 | It seems you have not accepted the Xcode license; most ports will fail to build. |
| 309 | Agree to the license by opening Xcode or running `sudo xcodebuild -license'. |
| 310 | }}} |
| 311 | }}} |