Skip to content

Conversation

@jmagman
Copy link
Member

@jmagman jmagman commented Jan 7, 2021

Exclude unsupported new arm64 and old i386 iOS simulators at the build setting layer instead of passing -sdk x86_64 as an option to xcodebuild. 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).

#64502 (comment)

Added a ios_content_validation_test case to target the simulator with ONLY_ACTIVE_ARCH=NO which will target all valid architectures that have not been explicitly excluded. This test case would fail if arm64 or i386 were not excluded.

@flutter-dashboard flutter-dashboard bot added c: contributor-productivity Team-specific productivity, code health, technical debt. tool Affects the "flutter" command-line tool. See also t: labels. labels Jan 7, 2021
@jmagman jmagman self-assigned this Jan 7, 2021
@google-cla google-cla bot added the cla: yes label Jan 7, 2021
@jmagman jmagman added platform-ios iOS applications specifically t: xcode "xcodebuild" on iOS and general Xcode project management and removed cla: yes labels Jan 7, 2021
@google-cla google-cla bot added the cla: yes label Jan 7, 2021
@jmagman jmagman changed the title Exclude arm64 from valid iOS simulators Exclude arm64 from supported iOS simulator architectures Jan 7, 2021
@jmagman jmagman requested review from jonahwilliams and xster January 7, 2021 19:48
buildCommands.addAll(<String>['-sdk', 'iphoneos']);
} else {
buildCommands.addAll(<String>['-sdk', 'iphonesimulator', '-arch', 'x86_64']);
buildCommands.addAll(<String>['-sdk', 'iphonesimulator']);
Copy link
Member Author

Choose a reason for hiding this comment

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

\cc @gw280 FYI when you test your ARM framework you'll need to either comment out the two places I added EXCLUDED_ARCHS[sdk=iphonesimulator*]=arm64 i386 or you can override the build settings in your test project. Let me know if you need assistance.

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.

LGTM

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 platform-ios iOS applications specifically t: xcode "xcodebuild" on iOS and general Xcode project management 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