The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods inst...

在Flutter项目中,运行iOS设备运行项目的时候,报错如下所示:

The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods install

执行:

pod install

依然报错:

Could not find 'ffi' (>= x.x.0) among xxx total gem(s) (Gem::MissingSpecError)

网上找的方法均无解,最后,执行

sudo gem install cocoapods
1.png

ok!
参考官网:https://guides.cocoapods.org/using/getting-started.html#installation

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容