执行Flutter build ios时,如果.ios中的项目没有执行过pod install,它会先执行pod install,然后再去执行Xcode build;
Running pod install... Running Xcode build...
如果flutter项目中的一些三方插件指定了较高版本的iOS(iOS Deployment Target),会在pod install时报错:
Specs satisfying the `majascan (from `Flutter/.symlinks/majascan/ios`), majascan` dependency were found, but they required a higher minimum deployment target.
我们只需要在.ios的项目中的Podfile中将platform :ios, '8.0' 改成 platform :ios, '10.0',大于8.0即可~