Revert "Avoid thinning frameworks in iOS extensions (#64674)" (#64829)

This reverts commit ce9cde8c4e.
This commit is contained in:
Zachary Anderson
2020-08-28 15:23:22 -07:00
committed by GitHub
parent 6f02c0b231
commit dff7ea1c4f
7 changed files with 55 additions and 300 deletions

View File

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