Protecting resources
I am trying to protect some images in an app. I followed this tutorial:
http://aptogo.co.uk/2010/07/protecting-resources/
This is what's in a run script in the build phases tab of my target:
DIRNAME=Resource Images
ENC_KEY="01234567890123456789012345678901"
INDIR=$PROJECT_DIR/$DIRNAME
OUTDIR=$TARGET_BUILD_DIR/$CONTENTS_FOLDER_PATH/$DIRNAME
if [ ! -d "$OUTDIR" ]; then mkdir -p "$OUTDIR" fi
for file in "$INDIR"/* do echo "Encrypting $file" "$PROJECT_DIR/crypt" -e
-k $ENC_KEY -i "$file" -o "$OUTDIR/basename "$file"" done
However, whenever I run the program, it's stuck on running the script,
saying Running 1 of 1 custom shell scripts. The crypt file is definitely
there. How do I fix this?
No comments:
Post a Comment