Skip to content

Commit

Permalink
Update ffi gem installation instructions (#103008)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmagman authored May 4, 2022
1 parent c3ab24e commit 2e1c146
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/flutter_tools/lib/src/macos/cocoapods.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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',
emphasis: true,
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -536,6 +536,10 @@ Note: as of CocoaPods 1.0, `pod repo update` does not happen on `pod install` by
logger.errorText,
contains('set up CocoaPods for ARM macOS'),
);
expect(
logger.errorText,
contains('enable-libffi-alloc'),
);
expect(usage.events, contains(const TestUsageEvent('pod-install-failure', 'arm-ffi')));
});
});
Expand Down

0 comments on commit 2e1c146

Please sign in to comment.