The following error occurred when pod install was installed on M1 MacBook:
Analyzing dependencies/Library/Ruby/Gems/server/Gems/ffi - 1.15.3 / lib/block/Library. The rb: 275: [BUG] Bus Error at 0x00000001042FC000 Ruby 2.6.3P62 (2019-04-16 Revision 67580) [Universal. Arm64e-darwin20] -- Crash Report log information -------------------------------------------- See Crash Report log file under the one of following: * ~/Library/Logs/DiagnosticReports * /Library/Logs/DiagnosticReports for more details. Don't forget to include the above Crash Report log file in bug reports.Copy the code
Graph:
The solution
Enter the following two lines on the terminal to install the POD:
sudo arch -x86_64 gem install ffi
arch -x86_64 pod install
Just type the second line above when you install pod again later.