[macOS] Enable universal binary builds by default (#100271)
This changes the default build architectures for Flutter macOS apps to x86_64 and arm64. Previously, we manually excluded arm64 builds via the EXCLUDE_ARCHS Xcode setting in Flutter's generated xcconfig file. This eliminates setting EXCLUDE_ARCHS during the build and updates the default architectures in the tool and in the macos_assemble.sh wrapper. Issue: https://github.com/flutter/flutter/issues/97681 Umbrella issue: https://github.com/flutter/flutter/issues/60113
This commit is contained in:
@@ -291,7 +291,6 @@ void main() {
|
||||
'FLUTTER_BUILD_DIR=build',
|
||||
'FLUTTER_BUILD_NAME=1.0.0',
|
||||
'FLUTTER_BUILD_NUMBER=1',
|
||||
'EXCLUDED_ARCHS=arm64',
|
||||
'DART_DEFINES=Zm9vLmJhcj0y,Zml6ei5mYXI9Mw==',
|
||||
'DART_OBFUSCATION=true',
|
||||
'EXTRA_FRONT_END_OPTIONS=--enable-experiment=non-nullable',
|
||||
@@ -303,6 +302,7 @@ void main() {
|
||||
'PACKAGE_CONFIG=/.dart_tool/package_config.json',
|
||||
'COCOAPODS_PARALLEL_CODE_SIGN=true',
|
||||
]));
|
||||
expect(contents, isNot(contains('EXCLUDED_ARCHS')));
|
||||
}, overrides: <Type, Generator>{
|
||||
FileSystem: () => fileSystem,
|
||||
ProcessManager: () => FakeProcessManager.list(<FakeCommand>[
|
||||
|
||||
Reference in New Issue
Block a user