Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Detect ARM ffi CocoaPods error, suggest gem install #70801

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
Nov 19, 2020

Conversation

jmagman
Copy link
Member

@jmagman jmagman commented Nov 19, 2020

Description

CocoaPods crashes on ARM Macs if the x86 version of the ffi gem isn't installed.

Detect this crash and tell users how to fix it.

Screen Shot 2020-11-19 at 12 41 11 PM

Related Issues

#70796

Tests

cocoapods_tests

@jmagman jmagman added the platform-mac Building on or for macOS specifically label Nov 19, 2020
@jmagman jmagman self-assigned this Nov 19, 2020
@flutter-dashboard flutter-dashboard bot added the tool Affects the "flutter" command-line tool. See also t: labels. label Nov 19, 2020
@google-cla google-cla bot added the cla: yes label Nov 19, 2020
);
pretendPodVersionIs('1.8.0');
pretendPodVersionIs('1.9.0');
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 should have been updated with #69809 and was mucking up the error text.

..createSync()
..writeAsStringSync('Existing Podfile');

when(mockProcessManager.runSync(<String>['sysctl', 'hw.optional.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.

Adding this file to my mental list to swap to FakeProcessManager. Make the new tests match the rest of the file, for now.

Copy link
Contributor

@christopherfujino christopherfujino 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
platform-host-arm Building on an ARM-based platform platform-mac Building on or for macOS specifically 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