summaryrefslogtreecommitdiff
path: root/platform/ios/framework
diff options
context:
space:
mode:
authorMinh Nguyễn <mxn@1ec5.org>2017-02-21 22:47:15 -0800
committerMinh Nguyễn <mxn@1ec5.org>2017-02-21 22:47:15 -0800
commit2f388d663505255e967597c52656cc076e20d95c (patch)
tree157ec4c96a5d6f7c67367f96b73957870ee78edb /platform/ios/framework
parentb512af6a6682bf133d8d580cccb309f671f287f6 (diff)
parentdf6a06bd07bda3207b31d86dd66a7468cc33c440 (diff)
downloadqtlocation-mapboxgl-2f388d663505255e967597c52656cc076e20d95c.tar.gz
Merge branch 'release-ios-v3.4.0' into 1ec5-release-ios-v3.4.2
Diffstat (limited to 'platform/ios/framework')
-rwxr-xr-xplatform/ios/framework/strip-frameworks.sh19
1 files changed, 11 insertions, 8 deletions
diff --git a/platform/ios/framework/strip-frameworks.sh b/platform/ios/framework/strip-frameworks.sh
index 9deb404ca1..686541566a 100755
--- a/platform/ios/framework/strip-frameworks.sh
+++ b/platform/ios/framework/strip-frameworks.sh
@@ -35,9 +35,19 @@ code_sign() {
/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} --preserve-metadata=identifier,entitlements "$1"
}
-echo "Stripping frameworks"
+# Set working directory to product’s embedded frameworks
cd "${BUILT_PRODUCTS_DIR}/${FRAMEWORKS_FOLDER_PATH}"
+if [ "$ACTION" = "install" ]; then
+ echo "Copy .bcsymbolmap files to .xcarchive"
+ find . -name '*.bcsymbolmap' -type f -exec mv {} "${CONFIGURATION_BUILD_DIR}" \;
+else
+ # Delete *.bcsymbolmap files from framework bundle unless archiving
+ find . -name '*.bcsymbolmap' -type f -exec rm -rf "{}" +\;
+fi
+
+echo "Stripping frameworks"
+
for file in $(find . -type f -perm +111); do
# Skip non-dynamic libraries
if ! [[ "$(file "$file")" == *"dynamically linked shared library"* ]]; then
@@ -61,10 +71,3 @@ for file in $(find . -type f -perm +111); do
fi
done
-if [ "$ACTION" = "install" ]; then
- echo "Copy .bcsymbolmap files to .xcarchive"
- find . -name '*.bcsymbolmap' -type f -exec mv {} "${CONFIGURATION_BUILD_DIR}" \;
-else
- # Delete *.bcsymbolmap files from framework bundle unless archiving
- find . -name '*.bcsymbolmap' -type f -exec rm -rf "{}" +\;
-fi