From cede71547b1027eb325939db5996fa78b7438a75 Mon Sep 17 00:00:00 2001 From: Prianka Liz Kariat Date: Wed, 19 Apr 2023 01:22:12 +0530 Subject: [PATCH] Update build_ios_framework.sh --- mediapipe/tasks/ios/build_ios_framework.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mediapipe/tasks/ios/build_ios_framework.sh b/mediapipe/tasks/ios/build_ios_framework.sh index 01a7c8ac0..7484780a1 100755 --- a/mediapipe/tasks/ios/build_ios_framework.sh +++ b/mediapipe/tasks/ios/build_ios_framework.sh @@ -83,6 +83,10 @@ function build_ios_api_framework { FULL_FRAMEWORK_TARGET="${TARGET_PREFIX}:${FRAMEWORK_NAME}_framework" FULL_GRAPH_LIBRARY_TARGET="${TARGET_PREFIX}:${FRAMEWORK_NAME}_GraphLibrary" + # .bazelrc sets --apple_generate_dsym=true by default which bloats the libraries to sizes + # of the order of GBs. All iOS framework and library build commands for distribution via + # CocoaPods must set --apple_generate_dsym=false inorder to shave down the binary size to + # the order of a few MBs. local FRAMEWORK_CQUERY_COMMAND="-c opt --config=darwin_arm64 --apple_generate_dsym=false \ --define=MEDIAPIPE_DISABLE_GPU=${MEDIAPIPE_DISABLE_GPU} ${FULL_FRAMEWORK_TARGET}"