Flutter应用在iOS上卡在启动屏幕,但在Android设备上可以正常工作

4

我遇到了一个非常烦人的bug,在安卓设备上我的应用程序运行完美,但在ios上它会卡在启动画面上。我不知道如何修复这个问题,是否有可能是任何导致问题的方式?

您认为此错误是由代码还是系统引起的?或者我该如何确定引起问题的原因,有哪些可能的方法?

我正在VMware MacOs Catalina模拟器中测试我的ios应用程序。

u flutter doctor -v
[✓] Flutter (Channel stable, 2.0.4, on Mac OS X 10.15.3 19D76 darwin-x64, locale
    ru-KZ)
    • Flutter version 2.0.4 at /Users/shukur/Downloads/flutter
    • Framework revision b1395592de (9 days ago), 2021-04-01 14:25:01 -0700
    • Engine revision 2dce47073a
    • Dart version 2.12.2

[✗] Android toolchain - develop for Android devices
    ✗ Unable to locate Android SDK.
      Install Android Studio from:
      https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK
      components.
      (or visit https://flutter.dev/docs/get-started/install/macos#android-setup
      for detailed instructions).
      If the Android SDK has been installed to a custom location, please use
      `flutter config --android-sdk` to update to that location.


[!] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.3.1, Build version 11C505
    ! Xcode 11.3.1 out of date (12.0.1 is recommended).
      Download the latest version or update via the Mac App Store.
    • CocoaPods version 1.10.1

[✗] Chrome - develop for the web (Cannot find Chrome executable at
    /Applications/Google Chrome.app/Contents/MacOS/Google Chrome)
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.

[!] Android Studio (not installed)
    • Android Studio not found; download from
      https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/docs/get-started/install/macos#android-setup
      for detailed instructions).

[✓] Connected device (1 available)
    • iPhone 11 Pro Max (mobile) • 051A9E22-C99F-4531-B1AA-917BA8F0E332 • ios •
      com.apple.CoreSimulator.SimRuntime.iOS-13-3 (simulator)
1个回答

2

我只是通过在真实的iPhone设备上测试应用程序来解决了这个错误!干杯!


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接