-
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 清除所有缓存。