Flutter:Application not configured for iOS

在flutter build iOS的时候,项目会提示Application not configured for iOS,这是因为创建的时候并非以iOS程序的方式创建,因此无法直接编译,费话不多说,直接写解决方案。
1,生成一个空的过程

flutter create .

2,如果是混编在yaml文件加入

  module:
    androidX: true
    androidPackage: com.myflutterXXX
    iosBundleIdentifier:com.myflutterXXX

3,build

fluttter build ios

4,删除不必要的 ios 等文件夹

5,看时候出现.ios 文件夹

如果有,即可重新打包。

你可能感兴趣的:(Flutter:Application not configured for iOS)