From 031ddc0255635d6361692c4180040d757de4655d Mon Sep 17 00:00:00 2001 From: Jason Wray Date: Sat, 28 Jan 2017 19:03:42 -0500 Subject: [PATCH] [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. --- platform/ios/framework/strip-frameworks.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/platform/ios/framework/strip-frameworks.sh b/platform/ios/framework/strip-frameworks.sh index 9deb404ca..5e0dc0e17 100755 --- a/platform/ios/framework/strip-frameworks.sh +++ b/platform/ios/framework/strip-frameworks.sh @@ -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