Skip to content

Instantly share code, notes, and snippets.

@danielctull
Created March 11, 2014 19:28
Show Gist options
  • Save danielctull/9493221 to your computer and use it in GitHub Desktop.
Save danielctull/9493221 to your computer and use it in GitHub Desktop.
Build phase, run script to check if appledoc is installed and run it if so
appledoc=`which appledoc`
if [ $appledoc ]; then
company="Daniel Tull";
companyID="uk.co.danieltull";
companyURL="http://danieltull.co.uk";
outputPath="/tmp/${PRODUCT_NAME}";
$appledoc \
--project-name "${PRODUCT_NAME}" \
--project-company "${company}" \
--company-id "${companyID}" \
--output "${outputPath}" \
--create-docset \
--install-docset \
--create-html \
--docset-platform-family "${SUPPORTED_PLATFORMS}" \
--exit-threshold 2 \
--no-repeat-first-par \
"${BUILT_PRODUCTS_DIR}/include/${PRODUCT_NAME}"
else
echo "appledoc not found."
fi;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment