Avoid thinning frameworks in iOS extensions (#65198)

This commit is contained in:
Jenn Magder
2020-09-15 11:10:25 -07:00
committed by GitHub
parent eb5ab2cb5c
commit 7e27b140f0
8 changed files with 306 additions and 56 deletions

View File

@@ -271,11 +271,10 @@ ThinFramework() {
}
ThinAppFrameworks() {
local app_path="${TARGET_BUILD_DIR}/${WRAPPER_NAME}"
local frameworks_dir="${app_path}/Frameworks"
local xcode_frameworks_dir="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
[[ -d "$frameworks_dir" ]] || return 0
find "${app_path}" -type d -name "*.framework" | while read framework_dir; do
[[ -d "${xcode_frameworks_dir}" ]] || return 0
find "${xcode_frameworks_dir}" -type d -name "*.framework" | while read framework_dir; do
ThinFramework "$framework_dir" "$ARCHS"
done
}