Flutter 应用程序在真实 iOS 设备上运行时崩溃

问题描述 投票:0回答:1

我们开发了一个flutter应用程序并在很多模拟器(iOs/android)上进行了测试,它们工作得很好,然后我们构建了apk文件并在android上进行了测试,它工作得很好,但是当我们为iOS构建ipa时,应用程序崩溃了启动。

我们尝试在真正的 Iphone 上进行调试,但该应用程序只能在发布时崩溃。 也尝试了几次

flutter clean
但没有运气。

扑医生-v

[✓] Flutter (Channel stable, 3.13.8, on macOS 14.0 23A344 darwin-arm64, locale
    en-YE)
    • Flutter version 3.13.8 on channel stable at
      /Users/albusairi/Development/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 6c4930c4ac (5 days ago), 2023-10-18 10:57:55 -0500
    • Engine revision 767d8c75e8
    • Dart version 3.1.4
    • DevTools version 2.25.0

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/albusairi/Library/Android/sdk
    • Platform android-34, build-tools 34.0.0
    • Java binary at: /Applications/Android
      Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      17.0.6+0-17.0.6b829.9-10027231)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.0)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15A240d
    • CocoaPods version 1.13.0

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2022.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build
      17.0.6+0-17.0.6b829.9-10027231)

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

[✓] Connected device (4 available)
    • iPhone 15 Pro (mobile)  • DC34EB5F-3761-4965-94AF-EB8A38E8FE50 •ios • com.apple.CoreSimulator.SimRuntime.iOS-17-0 (simulator)

[✓] Network resources
    • All expected network resources are available.

• No issues found!
ios flutter dart crash
1个回答
0
投票

我们设法阻止应用程序表单崩溃,崩溃的原因是应用程序中使用的一个名为 internet_connection_checker 1.0.0+1

我们不确定为什么它会使应用程序崩溃,但我们认为这是两个之一:

  1. 我们没有正确实现它以适应 iOs 设备。 (正在努力)
  2. 软件包中有错误。

我们将尝试解决问题,如果无法解决,我们将尝试另一个套餐。

谢谢你。

© www.soinside.com 2019 - 2024. All rights reserved.