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.
Written by Arnaud Coomans
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Documentation
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#