Mac M1 Flutter Error Regarding undefined method `map' for nil:NilClass


#Flutter#Mac M1

Mac M1 當要跑 pod install 時出現

Looking for related issues on cocoapods/cocoapods...
Searching for inspections failed: undefined method `map' for nil:NilClass

解決方法


ffi 相容性問題,安裝重新安裝 ffi

sudo arch -x86_64 gem install ffi

再使用

arch -x86_64 pod install

參考:
https://stackoverflow.com/questions/67443265
https://stackoverflow.com/questions/64901180