Flutter打包apk没有问题。可正常打包。
但是当打IOS包运行flutter build ios命令后出现了如下错误:
Error:CocoaPods‘s specs repository is too out-of-date to satisfy dependencies
To update the CocoaPods specs, run:
pod repoupdate
Error running pod install
如下图:
执行了pod repo update也不行。
后来IOS工程师同事告诉我让我删除IOS工程中的Podfile.lock文件。
我删除了Podfile.lock文件再次重新打包就可以了。