[英]Flutter for iOS 12.1: black screen instead of an app
Good afternoon, I developed a basic app in Flutter with main target on smartphone users.下午好,我在 Flutter 中开发了一个基本的应用程序,主要针对智能手机用户。 I made Android app and Google Play Market accepted it to publish.我制作了 Android 应用,Google Play Market 接受了它发布。 Then I generated an app for Apple Store and applied it but got a rejection with the following description:然后我为 Apple Store 生成了一个应用程序并应用了它,但被拒绝,描述如下:
" Guideline 2.1 - Performance - App Completeness "准则 2.1 - 性能 - 应用程序完整性
We discovered one or more bugs in your app when reviewed on iPad running iOS 12.1 on Wi-Fi.在通过 Wi-Fi 运行 iOS 12.1 的 iPad 上查看时,我们发现了您的应用程序中的一个或多个错误。
Specifically, your app didn't load any content - only black page was displayed."具体来说,你的应用没有加载任何内容——只显示了黑色页面。”
Yes, they attached a screenshot of black screen but I am confused how to fix this problem for exactly this version of iOS.是的,他们附上了黑屏的屏幕截图,但我很困惑如何为这个版本的 iOS 解决这个问题。 I have checked my app for different versions of iPhones and the app works as fine and smoothly as in Android smartphones too.我已经检查了我的应用程序是否适用于不同版本的 iPhone,该应用程序也可以像在 Android 智能手机中一样运行良好和流畅。
Hence, my questions are (as a newbie in work with Apple Store):因此,我的问题是(作为与 Apple Store 合作的新手):
Thank you in advance for your support and any comments.预先感谢您的支持和任何意见。
Sincerely, Mary真诚的,玛丽
Updates: I created initial app for iOS using Xcode 8 and run it on emulators there, app works.更新:我使用 Xcode 8 为 iOS 创建了初始应用程序并在那里的模拟器上运行它,应用程序有效。 However, when I run this app in Xcode 10.1, I see a black screen even in iPhone X (on Xcode 8 it run smoothly).但是,当我在 Xcode 10.1 中运行此应用程序时,即使在 iPhone X 中我也看到黑屏(在 Xcode 8 上运行流畅)。
This is a known issue and here's how to solve it :这是一个已知问题,以下是解决方法:
Before archiving your iOS app you need to run this command in terminal (Pointing to your project's directory)在归档您的 iOS 应用程序之前,您需要在终端中运行此命令(指向您的项目目录)
flutter build ios --release
And then archive your build, it should work fine.然后归档您的构建,它应该可以正常工作。
运行 Flutter 应用程序时我的屏幕也黑屏,禁用 DNSCloack 后,它再次运行正常,我认为是 VPN 的问题
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.