Last Updated: February 25, 2016
·
2.279K
· acoomans

Appledoc Xcode target

Install appledoc:

brew install appledoc

Go to Project > Add Target “Documentation” and then Build phases > Add build phase > Add run script

/usr/local/bin/appledoc \
--project-name "MyProject" \
--project-company "MyCompany" \
--company-id "com.mydomain" \
--output build \
--docsetutil-path `xcode-select -print-path`/usr/bin/docsetutil \
--create-docset \
--install-docset \
--create-html \
--exit-threshold 2 \
--no-repeat-first-par \
MyProjectDir

Now start documenting with markdown-style comments

Note: empty documentation makes Xcode crash. Put at least one /** */ comment in a class header.

http://gentlebytes.com/appledoc/