Flutter打包iOS,The bundle Runner.appFrameworksApp.framework does not support the minimum OS Version

Flutter打包iOS,The bundle Runner.appFrameworksApp.framework does not support the minimum OS Version,第1张

Flutter应用打iOS包,在Validate App的最后一步总是报错如下:

 各种百度,参考 

After doing a flutter clean, changing MinimumOSVersion (inside /ios/Flutter/AppframeworkInfo.plist) to 9.0, iOS Deployment Target (inside project runner) to 9.0 and iOS Deployment Target (inside target runner) to 9.0 the error disappeared.

设置后,打包依然没有解决。后来在Github上找到了解决方法。

In the meantime, as a workaround, open these files in Xcode in your Flutter SDK:
bin/cache/artifacts/engine/ios-release/Flutter.xcframework/ios-arm64_armv7/Flutter.framework/Info.plist
bin/cache/artifacts/engine/ios-release/Flutter.xcframework/ios-arm64_x86_64-simulator/Flutter.framework/Info.plist

Change the MinimumOSVersion value from 8.0 to 9.0.

Then run flutter clean in your Flutter project.

收工!

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/996505.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-21
下一篇 2022-05-21

发表评论

登录后才能评论

评论列表(0条)

保存