Skip to content

Instantly share code, notes, and snippets.

@quellish
Created November 9, 2011 20:25
Show Gist options
  • Select an option

  • Save quellish/1352875 to your computer and use it in GitHub Desktop.

Select an option

Save quellish/1352875 to your computer and use it in GitHub Desktop.
Xcode shell script build phase for appledoc documentation
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 --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