Flutter The plugin “xxx“ requires a higher minimum iOS deployment version than..

  • flutter 开发,安装了插件,在运行 iOS 的时候报错:

    Error: The plugin "mobile_scanner" requires a higher minimum iOS deployment version than your application is targeting. To build, increase your application's deployment target to at least 15.5.0 as described at https://flutter.dev/to/ios-deploy

  • 找到 ios/Podfile 在顶部找到 platform 配置,打开修改它的版本。

    # Uncomment this line to define a global platform for your project
    platform :ios, '15.5.0'
    
  • 然后重新运行即可!!如果遇到报错,可以参考这篇 # Flutter iOS 清除所有缓存。

你可能感兴趣的:(Flutter,flutter,ios)