如果在Flutter运行过程始终遇到此问题
[10:08:16]: ▸ �[35m/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/universal-darwin20/rbconfig.rb:229: warning: Insecure world writable dir /opt/homebrew/opt in PATH, mode 040777�[0m
[10:08:16]: ▸ �[35mError: CocoaPods's specs repository is too out-of-date to satisfy dependencies.�[0m
[10:08:16]: ▸ �[35mTo update the CocoaPods specs, run:�[0m
[10:08:16]: ▸ �[35mpod repo update�[0m
[10:08:16]: ▸ �[35mError running pod install�[0m
或者
由于第三库相互之间版本问题导致引用失败
解决方法
1、删除pubspec.lock文件
2、重新进行pod install
3、pod install --verbose --no-repo-update
命令解析:
pod install --verbose --no-repo-update
该命令只安装新添加的库,已更新的库忽略
pod update 库名--verbose --no-repo-update
该命令只更新指定的库,其它库忽略
重新运行即可解决问题。