Installation steps of cocoapods in the new Macs with M1 chipset is little different than Intel based Macs. If we casually run `pod install`, we are likely to encounter error related to the ffi gem 🤨. Open the terminal and follow below steps to solve the error and install pod dependencies successfully.
Step1 : At first, install ffi gem intel version
> sudo arch -x86_64 gem install ffi> sudo gem install cocoapods
> arch -x86_64 pod init
> arch -x86_64 pod install