Update ffi gem installation instructions (#103008)

This commit is contained in:
Jenn Magder 2022-05-04 13:24:08 -07:00 committed by GitHub
parent c3ab24e0b8
commit 2e1c146eec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -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,
);
}

View File

@ -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')));
});
});