Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
7424db44
Unverified
Commit
7424db44
authored
Jul 30, 2021
by
Jenn Magder
Committed by
GitHub
Jul 30, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Exclude arm64 from iOS app archs if unsupported by plugins on x64 Macs (#87362)
parent
9072bac5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
9 deletions
+2
-9
xcode_build_settings.dart
packages/flutter_tools/lib/src/ios/xcode_build_settings.dart
+1
-2
xcodeproj_test.dart
.../flutter_tools/test/general.shard/ios/xcodeproj_test.dart
+1
-7
No files found.
packages/flutter_tools/lib/src/ios/xcode_build_settings.dart
View file @
7424db44
...
...
@@ -4,7 +4,6 @@
import
'../artifacts.dart'
;
import
'../base/file_system.dart'
;
import
'../base/os.dart'
;
import
'../build_info.dart'
;
import
'../cache.dart'
;
import
'../flutter_manifest.dart'
;
...
...
@@ -210,7 +209,7 @@ Future<List<String>> _xcodeBuildSettingsLines({
// If any plugins or their dependencies do not support arm64 simulators
// (to run natively without Rosetta translation on an ARM Mac),
// the app will fail to build unless it also excludes arm64 simulators.
if
(
globals
.
os
.
hostPlatform
==
HostPlatform
.
darwin_arm
&&
!(
await
project
.
ios
.
pluginsSupportArmSimulator
()))
{
if
(!(
await
project
.
ios
.
pluginsSupportArmSimulator
()))
{
excludedSimulatorArchs
+=
' arm64'
;
}
xcodeBuildSettings
.
add
(
'EXCLUDED_ARCHS[sdk=iphonesimulator*]=
$excludedSimulatorArchs
'
);
...
...
packages/flutter_tools/test/general.shard/ios/xcodeproj_test.dart
View file @
7424db44
...
...
@@ -9,7 +9,6 @@ import 'package:flutter_tools/src/artifacts.dart';
import
'package:flutter_tools/src/base/file_system.dart'
;
import
'package:flutter_tools/src/base/io.dart'
;
import
'package:flutter_tools/src/base/logger.dart'
;
import
'package:flutter_tools/src/base/os.dart'
;
import
'package:flutter_tools/src/base/platform.dart'
;
import
'package:flutter_tools/src/base/version.dart'
;
import
'package:flutter_tools/src/build_info.dart'
;
...
...
@@ -21,7 +20,6 @@ import 'package:flutter_tools/src/reporting/reporting.dart';
import
'../../src/common.dart'
;
import
'../../src/context.dart'
;
import
'../../src/fake_process_manager.dart'
;
import
'../../src/fakes.dart'
;
const
String
xcodebuild
=
'/usr/bin/xcodebuild'
;
...
...
@@ -739,7 +737,6 @@ Build settings for action build and target plugin2:
},
overrides:
<
Type
,
Generator
>{
Artifacts:
()
=>
localArtifacts
,
Platform:
()
=>
macOS
,
OperatingSystemUtils:
()
=>
FakeOperatingSystemUtils
(
hostPlatform:
HostPlatform
.
darwin_arm
),
FileSystem:
()
=>
fs
,
ProcessManager:
()
=>
fakeProcessManager
,
XcodeProjectInterpreter:
()
=>
xcodeProjectInterpreter
,
...
...
@@ -781,7 +778,6 @@ Build settings for action build and target plugin2:
},
overrides:
<
Type
,
Generator
>{
Artifacts:
()
=>
localArtifacts
,
Platform:
()
=>
macOS
,
OperatingSystemUtils:
()
=>
FakeOperatingSystemUtils
(
hostPlatform:
HostPlatform
.
darwin_arm
),
FileSystem:
()
=>
fs
,
ProcessManager:
()
=>
fakeProcessManager
,
XcodeProjectInterpreter:
()
=>
xcodeProjectInterpreter
,
...
...
@@ -835,7 +831,6 @@ Build settings for action build and target plugin2:
},
overrides:
<
Type
,
Generator
>{
Artifacts:
()
=>
localArtifacts
,
Platform:
()
=>
macOS
,
OperatingSystemUtils:
()
=>
FakeOperatingSystemUtils
(
hostPlatform:
HostPlatform
.
darwin_arm
),
FileSystem:
()
=>
fs
,
ProcessManager:
()
=>
fakeProcessManager
,
XcodeProjectInterpreter:
()
=>
xcodeProjectInterpreter
,
...
...
@@ -846,7 +841,6 @@ Build settings for action build and target plugin2:
testUsingContext
(
description
,
testMethod
,
overrides:
<
Type
,
Generator
>{
Artifacts:
()
=>
localArtifacts
,
Platform:
()
=>
macOS
,
OperatingSystemUtils:
()
=>
FakeOperatingSystemUtils
(
hostPlatform:
HostPlatform
.
darwin_x64
),
FileSystem:
()
=>
fs
,
ProcessManager:
()
=>
FakeProcessManager
.
any
(),
});
...
...
@@ -875,7 +869,7 @@ Build settings for action build and target plugin2:
expect
(
buildPhaseScriptContents
.
contains
(
'EXCLUDED_ARCHS'
),
isFalse
);
});
testUsingOsxContext
(
'
excludes i386 simulator
'
,
()
async
{
testUsingOsxContext
(
'
does not exclude arm64 simulator when there are no plugins
'
,
()
async
{
const
BuildInfo
buildInfo
=
BuildInfo
.
debug
;
final
FlutterProject
project
=
FlutterProject
.
fromDirectoryTest
(
fs
.
directory
(
'path/to/project'
));
await
updateGeneratedXcodeProperties
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment