当我在 App Store 上提交我的应用以供审核时,我收到了一条拒绝消息:“具体来说,当我们启动你的应用时,你的应用显示了一个白色的空白屏幕。”
当我在设备上测试应用程序时,一切似乎都运行良好。我尝试了以下测试:
flutter build ios
flutter run
flutter build ios --release
flutter run
使用 VSCode 的运行功能进行测试。
在 Debug 和 Release 模式设置中在 xcode 中运行到物理设备上
如果我存档并将相同的构建上传到 Testflight,则可以在多个不同的设备上安装和运行该应用程序而不会出现问题。
虽然所有这些方法都适用于我的物理 iPhone,但当我
flutter build ios --release
在 xcode 中使用 Organizer 运行打开的 xcode 存档上传时
该应用程序被 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)