Flutter 白屏:被 Apple 的 App Review 拒绝

问题描述

当我在 App Store 上提交我的应用以供审核时,我收到了这条被拒绝的消息: “具体来说,当我们启动您的应用时,您的应用显示一个白色的空白屏幕。”

当我在设备上测试应用程序时,一切似乎都运行良好。我尝试了以下测试:

  1. Flutter build ios Flutter run

  2. Flutter build ios --release Flutter run

  3. 使用 VSCode 的运行功能进行测试。

  4. 在调试和发布架构设置中在 xcode 中运行到物理设备

  5. 如果我存档并将相同的构建上传到 Testflight,该应用程序可以在多个不同的设备上安装和运行而不会出现问题。

虽然所有这些方法都适用于我的物理 iPhone,但当我运行时 Flutter build ios --release 打开 xcode 档案 在 xcode 中使用 Organizer 上传

该应用被 Apple 拒绝。我四处搜索,没有发现可以解决我的问题。有什么建议或好的后续步骤吗?

颤动医生:

[✓] Flutter (Channel stable,1.22.6,on macOS 11.1 20C69 darwin-x64,locale en-US)
    • Flutter version 1.22.6 at /Users/matthewkrager/Flutter
    • Framework revision 9b2d32b605 (5 days ago),2021-01-22 14:36:39 -0800
    • Engine revision 2f0af37152
    • Dart version 2.10.5

 
[!] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Users/matthewkrager/Library/Android/sdk
    • Platform android-30,build-tools 30.0.3
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
    ✗ Android licenses not accepted.  To resolve this,run: Flutter doctor --android-licenses

[✓] Xcode - develop for iOS and macOS (Xcode 12.4)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.4,Build version 12D4e
    • CocoaPods version 1.9.1

[!] Android Studio (version 4.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)

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

[✓] Connected device (2 available)

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)