[ios, build] Move symbol strip settings to Xcode project

This commit is contained in:
Jason Wray
2018-12-03 21:53:05 -05:00
committed by Jason Wray
parent d80d88d57b
commit ffe0624d77
2 changed files with 4 additions and 10 deletions

View File

@@ -4128,6 +4128,7 @@
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "";
CURRENT_PROJECT_VERSION = 1;
DEFINES_MODULE = YES;
DEPLOYMENT_POSTPROCESSING = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
@@ -4157,6 +4158,7 @@
PRODUCT_BUNDLE_IDENTIFIER = com.mapbox.Mapbox;
PRODUCT_NAME = Mapbox;
SKIP_INSTALL = YES;
STRIP_STYLE = "non-global";
SWIFT_VERSION = 3.0;
VERSIONING_SYSTEM = "apple-generic";
VERSION_INFO_PREFIX = "__attribute__((visibility (\"default\"))) ";
@@ -4223,6 +4225,7 @@
buildSettings = {
BITCODE_GENERATION_MODE = bitcode;
DEFINES_MODULE = YES;
DEPLOYMENT_POSTPROCESSING = YES;
HEADER_SEARCH_PATHS = (
"$(mbgl_core_INCLUDE_DIRECTORIES)",
"$(mbgl_filesource_INCLUDE_DIRECTORIES)",
@@ -4246,6 +4249,7 @@
PRODUCT_NAME = Mapbox;
PUBLIC_HEADERS_FOLDER_PATH = Headers;
SKIP_INSTALL = YES;
STRIP_STYLE = "non-global";
VERSION_INFO_PREFIX = "__attribute__((visibility (\"default\"))) ";
};
name = Release;

View File

@@ -171,16 +171,6 @@ else
cp -rv platform/ios/app/Settings.bundle ${OUTPUT}
fi
if [[ ${SYMBOLS} = NO ]]; then
step "Stripping symbols from binaries"
if [[ ${BUILD_STATIC} == true ]]; then
strip -Sx "${OUTPUT}/static/${NAME}.framework/${NAME}"
fi
if [[ ${BUILD_DYNAMIC} == true ]]; then
strip -Sx "${OUTPUT}/dynamic/${NAME}.framework/${NAME}"
fi
fi
function get_comparable_uuid {
echo $(dwarfdump --uuid ${1} | sed -n 's/.*UUID:\([^\"]*\) .*/\1/p' | sort)
}