Skip to content

Instantly share code, notes, and snippets.

@quellish
Created January 25, 2012 05:08
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save quellish/1674852 to your computer and use it in GitHub Desktop.
Save quellish/1674852 to your computer and use it in GitHub Desktop.
AppleDoc docset generator script for xcode
# This can be inserted as a Run Script build phase or a Build Rule in your Xcode project.
# You can set this to whatever you like.
DOCUMENTATION_DIR="Documentation"
BUNDLE_ID=$(/usr/libexec/PlistBuddy -c "Print :CFBundleIdentifier" "${BUILD_ROOT}/${INFOPLIST_PATH}")
# DOCUMENTATION_FOLDER_PATH
if [ -e /usr/local/bin/appledoc ] ; then
/usr/local/bin/appledoc --project-name $PRODUCT_NAME --output $DOCUMENTATION_DIR --logformat xcode --exit-threshold 2 --verbose xcode --docset-bundle-filename "$BUNDLE_ID.$PRODUCT_NAME.docset" .
else
echo "AppleDoc is not installed in /usr/local/bin , you can download it from https://github.com/tomaz/appledoc"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment