Error output from CocoaPods:
↳
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/universal-darwin21/rbconfig.rb:230: warning: Insecure world writable dir /opt/homebrew in PATH, mode 040777
Searching for inspections failed: undefined method `map’ for nil:NilClass
Error running pod install
Error launching application on iPhone 11 Pro.
解决
This line is very clear that some architecture is missing for building this pod. Apparently M1 mac does not have x86_64 arch.
So the solution is to run below two lines in terminal:
sudo arch -x86_64 gem install ffi
arch -x86_64 pod install
Now it should be working. 😉 Happy coding