Avoid thinning frameworks in iOS extensions (#64674)

This commit is contained in:
Jenn Magder
2020-08-28 10:43:04 -07:00
committed by GitHub
parent a3fe33af65
commit ce9cde8c4e
7 changed files with 300 additions and 55 deletions

View File

@@ -257,11 +257,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
}