Skip to content

Exclude arm64 from valid iOS simulators#73755

Merged
jmagman merged 2 commits intoflutter:masterfrom
jmagman:exclude-archs
Jan 12, 2021
Merged

Exclude arm64 from valid iOS simulators#73755
jmagman merged 2 commits intoflutter:masterfrom
jmagman:exclude-archs

Conversation

@jmagman
Copy link
Member

@jmagman jmagman commented Jan 12, 2021

Subset of #73458. It's similar but don't remove the xcodebuild -sdk x86_64 flag.

Description

Exclude unsupported new arm64 and old i386 iOS simulators at the build setting layer. This will allow the excluded architectures to be excluded when the project is run from Xcode, instead of just from the flutter command line.

Do this for plugin targets (in the podhelper) as well as in the Runner app target (Generated.xcconfig).

Update the add-to-app host apps to exclude arm64 simulators since Flutter still doesn't contain that slice.
Sample code update: flutter/samples#646
Website docs update: flutter/website#5174

#64502 (comment)

@jmagman jmagman self-assigned this Jan 12, 2021
@flutter-dashboard flutter-dashboard bot added the tool Affects the "flutter" command-line tool. See also t: labels. label Jan 12, 2021
@google-cla google-cla bot added the cla: yes label Jan 12, 2021
@jmagman
Copy link
Member Author

jmagman commented Jan 12, 2021

@xster You were right, flutter run seems to be working on the arm64 (Apple, not Intel) simulator as-is on master. On this PR I can now also launch on the simulator from Xcode.

@flutter-dashboard flutter-dashboard bot added the c: contributor-productivity Team-specific productivity, code health, technical debt. label Jan 12, 2021
DEBUG_INFORMATION_FORMAT = dwarf;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = arm64;
Copy link
Member Author

@jmagman jmagman Jan 12, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Host apps need to add this to work on arm64 macOS. That's not new to this PR, but this PR actually makes it fail on a non-Apple Silicon device, like our test agents.
Edit: that's not true, it won't fail on x86 Macs on this PR. I forgot I had to change a bunch of settings to force it to fail to test that this worked locally. You can disregard this comment, this PR doesn't impact host x86 host apps.

Copy link
Contributor

@jonahwilliams jonahwilliams left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RSLGTM

@jmagman jmagman merged commit 201e5e4 into flutter:master Jan 12, 2021
@jmagman jmagman deleted the exclude-archs branch January 12, 2021 18:35
jmagman added a commit that referenced this pull request Jan 12, 2021
jmagman added a commit that referenced this pull request Jan 12, 2021
@jmagman jmagman added the platform-host-arm Building on an ARM-based platform label Aug 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c: contributor-productivity Team-specific productivity, code health, technical debt. platform-host-arm Building on an ARM-based platform tool Affects the "flutter" command-line tool. See also t: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants