这是indexloc提供的服务,不要输入任何密码
Skip to content

Respect plugin excluded iOS architectures #86905

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

Merged
merged 1 commit into from
Jul 23, 2021

Conversation

jmagman
Copy link
Member

@jmagman jmagman commented Jul 22, 2021

Respect plugin Xcode build setting for EXCLUDED_ARCHS instead of overriding it.

Suggested in #85713 (comment)

@jmagman jmagman added tool Affects the "flutter" command-line tool. See also t: labels. t: xcode "xcodebuild" on iOS and general Xcode project management labels Jul 22, 2021
@jmagman jmagman self-assigned this Jul 22, 2021
@flutter-dashboard flutter-dashboard bot added the c: contributor-productivity Team-specific productivity, code health, technical debt. label Jul 22, 2021
@google-cla google-cla bot added the cla: yes label Jul 22, 2021
Comment on lines +180 to +182
if (!podsProjectContent.contains(r'"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = "$(inherited) i386";')) {
throw TaskResult.failure(r'EXCLUDED_ARCHS is not "$(inherited) i386"');
}
Copy link
Member Author

Choose a reason for hiding this comment

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

This is the new check, the rest is whitespace from hoisting out the target == 'ios' check.

@@ -243,6 +243,7 @@ void main() {
<String>['file', simulatorAppFrameworkBinary.path],
);
expect(archs.stdout, contains('Mach-O 64-bit dynamically linked shared library x86_64'));
expect(archs.stdout, contains('Mach-O 64-bit dynamically linked shared library arm64'));
Copy link
Member Author

Choose a reason for hiding this comment

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

This isn't actually related to this change, but this case should have been added with #85642

@jmagman jmagman requested a review from stuartmorgan-g July 23, 2021 20:25
Copy link
Contributor

@stuartmorgan-g stuartmorgan-g left a comment

Choose a reason for hiding this comment

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

Nice; inherited is much more elegant than my suggestion. LGTM!

@fluttergithubbot fluttergithubbot merged commit 6881fca into flutter:master Jul 23, 2021
@jmagman jmagman deleted the plugin-arm branch July 23, 2021 21:25
@jmagman jmagman added the platform-target-arm Targeting an ARM-based platform label Aug 20, 2021
@jmagman jmagman added the platform-ios iOS applications specifically label Feb 18, 2022
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-ios iOS applications specifically platform-target-arm Targeting an ARM-based platform 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.

3 participants