i'm working in generating docset for a ios project, but stumped.
as you known, we can write a sh script for the xcode build phases run script; and i want it run only when the project in release version & the software appledoc already installed, so i write it as follows:
# appledoc Xcode script
APPLEDOC_PATH=`which appledoc`
if [ $APPLEDOC_PATH ]; then
if [ "${CONFIGURATION}" = "Release" ]; then
#============================#
# some code here, omit! #
#============================#
fi
fi
it seems not work at all! and i know the problem is the command 'which appledoc' went wrong! so the question is:
how to check appledoc valid or not in the xcode build phases run script? any ideas? please give a hand! thanks!