cocoapods not work on XCode 13 === 遇到 `pod init` 錯誤的問題,解決方式在 command line 分別下: ``` sudo gem uninstall -aIx rm -rf ~/.gem sudo gem install cocoapods sudo chown -R $USER ~/Library/Caches/CocoaPods ``` ``` sudo gem install -n /usr/local/bin cocoapods -v 1.8.4 ``` ## Ref. [Could not find 'ffi' (>= 1.3.0) among 85 total gem(s) (Gem::MissingSpecError) React native IOS on pod install](https://stackoverflow.com/a/69098292/11827511) [Trouble with installing cocoapods](https://developer.apple.com/forums/thread/668456) ###### tags: `系統環境`