Flutter App IOS发行版本错误:缺少必需的图标文件

时间:2018-09-24 21:19:47

标签: xcode icons flutter release-builds

我构建了IOS版本,并在Xcode上创建了产品档案。但是,当我尝试验证存档时,出现此错误:

enter image description here

flutter doctor -v输出:

    [✓] Flutter (Channel beta, v0.8.2, on Mac OS X 10.13.6 17G65, locale en-US)
    • Flutter version 0.8.2 at /Users/westworld/development/flutter
    • Framework revision 5ab9e70727 (2 weeks ago), 2018-09-07 12:33:05 -0700
    • Engine revision 58a1894a1c
    • Dart version 2.1.0-dev.3.1.flutter-760a9690c2

[✓] Android toolchain - develop for Android devices (Android SDK 28.0.2)
    • Android SDK at /Users/westworld/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-28, build-tools 28.0.2
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
    • All Android licenses accepted.

[✓] iOS toolchain - develop for iOS devices (Xcode 10.0)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 10.0, Build version 10A255
    • ios-deploy 1.9.2
    • CocoaPods version 1.5.3

[✓] Android Studio (version 3.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 28.0.1
    • Dart plugin version 173.4700
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)

[✓] VS Code (version 1.27.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 2.18.0

[!] Connected devices
    ! No devices available

! Doctor found issues in 1 category.

Xcode部署目标为10.0。

此外,ios / Runner文件夹中还存在Assets.xcassets文件夹:

enter image description here

但是我在Xcode文件夹结构中看不到它:

enter image description here

因此,对于App Icons Source,我无法选择AppIcon文件夹:

enter image description here

不确定我是否清楚地问了这个问题,但是有人遇到过同样的问题吗?

1 个答案:

答案 0 :(得分:1)

我认为您的文件系统已经不同步了。如果在Android Studio中右键单击Assets.xcassets,然后在Finder中单击“显示”,这将显示什么?它实际上存在于您的项目文件夹中吗?如果是,则可能只需要将其拖动到Xcode中,然后删除当前的AppIcon文件即可。

执行任何操作之前,还可以尝试运行flutter cleanFile->Sync with File System in Android Studio.