File tree 5 files changed +7
-13
lines changed
test/commands.shard/hermetic
5 files changed +7
-13
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ BuildApp() {
70
70
" assemble"
71
71
" --no-version-check"
72
72
" -dTargetPlatform=darwin"
73
- " -dDarwinArchs=x86_64"
73
+ " -dDarwinArchs=x86_64 arm64 "
74
74
" -dTargetFile=${target_path} "
75
75
" -dBuildMode=${build_mode} "
76
76
" -dTreeShakeIcons=${TREE_SHAKE_ICONS} "
Original file line number Diff line number Diff line change @@ -116,9 +116,6 @@ def flutter_additional_macos_build_settings(target)
116
116
configuration_engine_dir = build_configuration . type == :debug ? debug_framework_dir : release_framework_dir
117
117
build_configuration . build_settings [ 'FRAMEWORK_SEARCH_PATHS' ] = "\" #{ configuration_engine_dir } \" $(inherited)"
118
118
119
- # ARM not yet supported https://github.com/flutter/flutter/issues/69221
120
- build_configuration . build_settings [ 'EXCLUDED_ARCHS' ] = 'arm64'
121
-
122
119
# When deleted, the deployment version will inherit from the higher version derived from the 'Runner' target.
123
120
# If the pod only supports a higher version, do not delete to correctly produce an error.
124
121
build_configuration . build_settings . delete 'MACOSX_DEPLOYMENT_TARGET' if inherit_deployment_target
Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ abstract class UnpackMacOS extends Target {
80
80
}
81
81
82
82
void _thinFramework (Environment environment, String frameworkBinaryPath) {
83
- final String archs = environment.defines[kDarwinArchs] ?? 'x86_64' ;
83
+ final String archs = environment.defines[kDarwinArchs] ?? 'x86_64 arm64 ' ;
84
84
final List <String > archList = archs.split (' ' ).toList ();
85
85
final ProcessResult infoResult = environment.processManager.runSync (< String > [
86
86
'lipo' ,
@@ -186,7 +186,7 @@ class DebugMacOSFramework extends Target {
186
186
final Iterable <DarwinArch > darwinArchs = environment.defines[kDarwinArchs]
187
187
? .split (' ' )
188
188
.map (getDarwinArchForName)
189
- ?? < DarwinArch > [DarwinArch .x86_64];
189
+ ?? < DarwinArch > [DarwinArch .x86_64, DarwinArch .arm64 ];
190
190
191
191
final Iterable <String > darwinArchArguments =
192
192
darwinArchs.expand ((DarwinArch arch) => < String > ['-arch' , getNameForDarwinArch (arch)]);
@@ -256,7 +256,7 @@ class CompileMacOSFramework extends Target {
256
256
? .split (' ' )
257
257
.map (getDarwinArchForName)
258
258
.toList ()
259
- ?? < DarwinArch > [DarwinArch .x86_64];
259
+ ?? < DarwinArch > [DarwinArch .x86_64, DarwinArch .arm64 ];
260
260
if (targetPlatform != TargetPlatform .darwin) {
261
261
throw Exception ('compile_macos_framework is only supported for darwin TargetPlatform.' );
262
262
}
Original file line number Diff line number Diff line change @@ -200,15 +200,12 @@ Future<List<String>> _xcodeBuildSettingsLines({
200
200
xcodeBuildSettings.add ('ARCHS=$arch ' );
201
201
}
202
202
}
203
- if (useMacOSConfig) {
204
- // ARM not yet supported https://github.com/flutter/flutter/issues/69221
205
- xcodeBuildSettings.add ('EXCLUDED_ARCHS=arm64' );
206
- } else {
207
- String excludedSimulatorArchs = 'i386' ;
208
203
204
+ if (! useMacOSConfig) {
209
205
// If any plugins or their dependencies do not support arm64 simulators
210
206
// (to run natively without Rosetta translation on an ARM Mac),
211
207
// the app will fail to build unless it also excludes arm64 simulators.
208
+ String excludedSimulatorArchs = 'i386' ;
212
209
if (! (await project.ios.pluginsSupportArmSimulator ())) {
213
210
excludedSimulatorArchs += ' arm64' ;
214
211
}
Original file line number Diff line number Diff line change @@ -291,7 +291,6 @@ void main() {
291
291
'FLUTTER_BUILD_DIR=build' ,
292
292
'FLUTTER_BUILD_NAME=1.0.0' ,
293
293
'FLUTTER_BUILD_NUMBER=1' ,
294
- 'EXCLUDED_ARCHS=arm64' ,
295
294
'DART_DEFINES=Zm9vLmJhcj0y,Zml6ei5mYXI9Mw==' ,
296
295
'DART_OBFUSCATION=true' ,
297
296
'EXTRA_FRONT_END_OPTIONS=--enable-experiment=non-nullable' ,
@@ -303,6 +302,7 @@ void main() {
303
302
'PACKAGE_CONFIG=/.dart_tool/package_config.json' ,
304
303
'COCOAPODS_PARALLEL_CODE_SIGN=true' ,
305
304
]));
305
+ expect (contents, isNot (contains ('EXCLUDED_ARCHS' )));
306
306
}, overrides: < Type , Generator > {
307
307
FileSystem : () => fileSystem,
308
308
ProcessManager : () => FakeProcessManager .list (< FakeCommand > [
You can’t perform that action at this time.
0 commit comments