What to Do When Appledoc Installation (Build) Fails: Changing Project Settings (For Xcode 5)

mac
2014-04-22 16:57 (10 years ago) ytyng

How to Fix Build Failures of appledoc with Xcode 5

https://github.com/tomaz/appledoc/issues/442

Issue

When cloning from GitHub and running install-appledoc.sh,

error: garbage collection is no longer supported

is displayed, causing the build to stop.

Alternatively, if you run brew install appledoc, it stops with (8 failures).

Solution

Open appledoc.xcodeproj in Xcode. (You will be asked if you want to convert to ARC, but do not proceed as it will fail.)

In PROJECT -> appledoc -> Build Settings, under User-Defined, you will find GCC_ENABLE_OBJC_GC set to required. Select it and press the delete key to remove it.

If you check git diff, you will see that GCC_ENABLE_OBJC_GC = required; has been removed from appledoc.xcodeproj/project.pbxproj.

After that, execute ./install-appledoc.sh

→ You should be able to install it.

Verification

$ which appledoc
/usr/local/bin/appledoc
$ appledoc --help
2014-04-22 16:56:19.396 appledoc[86974:507] 2014-03-22 07:33:02 +0000
2014-04-22 16:56:19.397 appledoc[86974:507] 2014-03-22 07:33:02 +0000
...
Currently unrated

Comments

Archive

2024
2023
2022
2021
2020
2019
2018
2017
2016
2015
2014
2013
2012
2011