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
Update ffi gem installation instructions #103008
Conversation
@@ -371,7 +371,7 @@ class CocoaPods { | |||
).send(); | |||
_logger.printError( | |||
'Error: To set up CocoaPods for ARM macOS, run:\n' | |||
' arch -x86_64 sudo gem install ffi\n', | |||
' sudo gem uninstall ffi && sudo gem install ffi -- --enable-libffi-alloc\n', |
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.
What does the additional --
between "ffi" and "--enable-libffi-alloc" mean?
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.
I guess they aren't parsing it as a flag but as a string positional parameter? I don't know why they did it like that, but the --
is needed.
ffi/ffi#800 (comment)
@@ -371,7 +371,7 @@ class CocoaPods { | |||
).send(); | |||
_logger.printError( | |||
'Error: To set up CocoaPods for ARM macOS, run:\n' | |||
' arch -x86_64 sudo gem install ffi\n', | |||
' sudo gem uninstall ffi && sudo gem install ffi -- --enable-libffi-alloc\n', |
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.
Does the user need to have a specific gem version to have this flag? Or is it old enough we don't have to worry?
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.
If they run this command they will get the newest version.
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.
nice
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
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
Update the outdated Rosetta
arch -x86_64
instructions to instead use the preferred--enable-libffi-alloc
flag whenpod install
fails on machines using the default system version of Ruby. I used this command to getpod install
working on my new M1.ffi/ffi#800
Already updated https://github.com/flutter/flutter/wiki/Developing-with-Flutter-on-Apple-Silicon
See #99195
Pre-launch Checklist
///
).If you need help, consider asking for advice on the #hackers-new channel on Discord.