美文网首页
flutter build ios --release

flutter build ios --release

作者: cjjjjjj | 来源:发表于2023-01-17 17:13 被阅读0次

执行flutter build ios --release命令时报错:

Automatically assigning platform 'iOS' with version '8.0' on target 'Runner' because no platform was specified. Please specify a platform for this target in your Podfile. See 'https://guides.cocoapods.org/syntax/podfile.html#platform'.

解决方法:

修改ios目录下podfile文件,去掉#如图

之后重新执行flutter build ios --release,成功。

注意:由于网络原因执行命令的时候遇到了一些链接第三方库失败或者超时的问题,只需要多执行几次就可以了,也可以尝试复制github的地址到浏览器中看看是否可以打开

相关文章

网友评论

      本文标题:flutter build ios --release

      本文链接:https://www.haomeiwen.com/subject/kouzcdtx.html