You may have encountered a bug in the Ruby interpreter or extension libraries.

pod install报错

1
2
3
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: https://www.ruby-lang.org/bugreport.html

出现这个问题的原因是因为没有适配M1的架构

解决办法

1
sudo arch -x86_64 gem install ffi

然后

1
arch -x86_64 pod install