-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Exclude arm64 from supported iOS simulator architectures #73458
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| buildCommands.addAll(<String>['-sdk', 'iphoneos']); | ||
| } else { | ||
| buildCommands.addAll(<String>['-sdk', 'iphonesimulator', '-arch', 'x86_64']); | ||
| buildCommands.addAll(<String>['-sdk', 'iphonesimulator']); |
There was a problem hiding this comment.
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.
jonahwilliams
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Exclude unsupported new arm64 and old i386 iOS simulators at the build setting layer instead of passing
-sdk x86_64as an option toxcodebuild. This will allow the excluded architectures to be excluded when the project is run from Xcode, instead of just from thefluttercommand 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=NOwhich will target all valid architectures that have not been explicitly excluded. This test case would fail if arm64 or i386 were not excluded.