Skip to content

Commit

Permalink
Merge pull request #3012 from realm/kk-bcsymbolmap
Browse files Browse the repository at this point in the history
[Script] Avoid code signing bcsymbolmap files
  • Loading branch information
jpsim committed Dec 17, 2015
2 parents b00d420 + 453e0c1 commit 31bc134
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions scripts/strip-frameworks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,14 @@ code_sign() {
/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} --preserve-metadata=identifier,entitlements "$1"
}

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"
cd "${BUILT_PRODUCTS_DIR}/${FRAMEWORKS_FOLDER_PATH}"

Expand All @@ -60,11 +68,3 @@ for file in $(find . -type f -perm +111); do
fi
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

0 comments on commit 31bc134

Please sign in to comment.