mirror of
https://github.com/flutter/flutter
synced 2024-09-21 09:11:56 +00:00
Handle multi-arch builds in Xcode lipo phase (#17212)
Correctly split ARCHS into a Bash array in xcode_backend.sh. Previously, when ARCHS contained multiple values (e.g., ARCHS="armv7 arm64"), we treated that as a single architecture, and lipo invocation would fail.
This commit is contained in:
parent
27a2a27cbf
commit
7f0876700a
|
@ -184,7 +184,8 @@ GetFrameworkExecutablePath() {
|
|||
LipoExecutable() {
|
||||
local executable="$1"
|
||||
shift
|
||||
local archs=("$@")
|
||||
# Split $@ into an array.
|
||||
read -r -a archs <<< "$@"
|
||||
|
||||
# Extract architecture-specific framework executables.
|
||||
local all_executables=()
|
||||
|
@ -225,11 +226,10 @@ LipoExecutable() {
|
|||
ThinFramework() {
|
||||
local framework_dir="$1"
|
||||
shift
|
||||
local archs=("$@")
|
||||
|
||||
local plist_path="${framework_dir}/Info.plist"
|
||||
local executable="$(GetFrameworkExecutablePath "${framework_dir}")"
|
||||
LipoExecutable "${executable}" "${archs[@]}"
|
||||
LipoExecutable "${executable}" "$@"
|
||||
}
|
||||
|
||||
ThinAppFrameworks() {
|
||||
|
|
Loading…
Reference in a new issue