[ios] Stop including framework stripping script in built product

This self-deletes the script during the build script phase. Does not
address the CocoaPods use-case.
This commit is contained in:
Jason Wray
2017-01-28 19:03:42 -05:00
parent f300a8fedc
commit 031ddc0255

View File

@@ -68,3 +68,12 @@ else
# Delete *.bcsymbolmap files from framework bundle unless archiving
find . -name '*.bcsymbolmap' -type f -exec rm -rf "{}" +\;
fi
# When this script finishes executing, delete itself from the built product
function finish {
if [[ $0 == "${BUILT_PRODUCTS_DIR}"* ]]; then
rm -f $0;
fi
}
trap finish EXIT