iOS 将设备更新到 iOS 14.7.1 后,flutter 应用程序未 运行
iOS flutter app not running after updating device to iOS 14.7.1
将我的 iPhone 11 更新到 iOS 版本 14.7.1 后,我的 flutter 应用程序不再启动。
已执行的步骤:
- 颤动干净
- flutter pub get
- 颤动运行
此外,
- 卸载并重新安装应用程序
- 重新启动 phone
输出:
(base) Henrys-MacBook-Air:flutter henrycorreia$ flutter run
Running "flutter pub get" in flutter... 3.2s
Launching lib/main.dart on Henry’s iPhone in debug mode...
Automatically signing iOS for device deployment using specified development team in Xcode project: XXXXXXXXXX
Running pod install... 25.0s
Running Xcode build...
Xcode build done. 208.8s
Installing and launching... 58.4s
Error launching application on Henry’s iPhone.
==>> flutter doctor -v:
[✓] Flutter (Channel stable, 2.2.3, on macOS 11.5.1 20G80 darwin-x64, locale en-GB)
• Flutter version 2.2.3 at /Users/henrycorreia/fvm/versions/2.2.3
• Framework revision f4abaa0735 (6 weeks ago), 2021-07-01 12:46:11 -0700
• Engine revision 241c87ad80
• Dart version 2.13.4
[!] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
• Android SDK at /Users/henr/Library/Android/sdk
• Platform android-30, build-tools 30.0.2
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)
✗ Android license status unknown.
Run `flutter doctor --android-licenses` to accept the SDK licenses.
See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.
[✓] Xcode - develop for iOS and macOS
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 12.5.1, Build version 12E507
• CocoaPods version 1.10.1
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 4.2)
• 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 11.0.8+10-b944.6916264)
[✓] VS Code (version 1.59.0)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.25.0
[✓] Connected device (3 available)
• Moto E 4 Plus (mobile) • xxxxxxxxx • android-arm • Android 7.1.1 (API 25)
• Henry’s iPhone (mobile) • xxxxxxxxxxxxxx • ios • iOS 14.7.1
• Chrome (web) • chrome • web-javascript • Google Chrome 92.0.4515.131
! Doctor found issues in 1 category.
有人遇到同样的问题吗?知道如何解决这个问题吗?
谢谢
您在第一个屏幕呈现之前出现运行时错误,请尝试将断点放在 main 的第一行并逐行调试。
我能够解决这个问题。这似乎是一个随机问题,在更新 flutter 版本或 iOS...
时会不时发生
以下是我解决问题的方法:
==>> 您也可以从这个主题中获得灵感:https://github.com/flutter/flutter/issues/72161
但是,对我有用的方法非常简单,因为我使用的是 vs 代码:
- 卸载了应用程序
- 重新启动 phone
- 使用Xcode
打开应用程序
- 产品 -> 清理构建文件夹
- 产品 -> 运行
应用程序将正确启动,然后退出 Xcode
之后,我 运行 使用 vs code 的应用程序,现在它像以前一样工作了。
将我的 iPhone 11 更新到 iOS 版本 14.7.1 后,我的 flutter 应用程序不再启动。 已执行的步骤:
- 颤动干净
- flutter pub get
- 颤动运行
此外,
- 卸载并重新安装应用程序
- 重新启动 phone
输出:
(base) Henrys-MacBook-Air:flutter henrycorreia$ flutter run
Running "flutter pub get" in flutter... 3.2s
Launching lib/main.dart on Henry’s iPhone in debug mode...
Automatically signing iOS for device deployment using specified development team in Xcode project: XXXXXXXXXX
Running pod install... 25.0s
Running Xcode build...
Xcode build done. 208.8s
Installing and launching... 58.4s
Error launching application on Henry’s iPhone.
==>> flutter doctor -v:
[✓] Flutter (Channel stable, 2.2.3, on macOS 11.5.1 20G80 darwin-x64, locale en-GB)
• Flutter version 2.2.3 at /Users/henrycorreia/fvm/versions/2.2.3
• Framework revision f4abaa0735 (6 weeks ago), 2021-07-01 12:46:11 -0700
• Engine revision 241c87ad80
• Dart version 2.13.4
[!] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
• Android SDK at /Users/henr/Library/Android/sdk
• Platform android-30, build-tools 30.0.2
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)
✗ Android license status unknown.
Run `flutter doctor --android-licenses` to accept the SDK licenses.
See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.
[✓] Xcode - develop for iOS and macOS
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 12.5.1, Build version 12E507
• CocoaPods version 1.10.1
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 4.2)
• 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 11.0.8+10-b944.6916264)
[✓] VS Code (version 1.59.0)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.25.0
[✓] Connected device (3 available)
• Moto E 4 Plus (mobile) • xxxxxxxxx • android-arm • Android 7.1.1 (API 25)
• Henry’s iPhone (mobile) • xxxxxxxxxxxxxx • ios • iOS 14.7.1
• Chrome (web) • chrome • web-javascript • Google Chrome 92.0.4515.131
! Doctor found issues in 1 category.
有人遇到同样的问题吗?知道如何解决这个问题吗?
谢谢
您在第一个屏幕呈现之前出现运行时错误,请尝试将断点放在 main 的第一行并逐行调试。
我能够解决这个问题。这似乎是一个随机问题,在更新 flutter 版本或 iOS...
时会不时发生以下是我解决问题的方法:
==>> 您也可以从这个主题中获得灵感:https://github.com/flutter/flutter/issues/72161
但是,对我有用的方法非常简单,因为我使用的是 vs 代码:
- 卸载了应用程序
- 重新启动 phone
- 使用Xcode 打开应用程序
- 产品 -> 清理构建文件夹
- 产品 -> 运行
应用程序将正确启动,然后退出 Xcode
之后,我 运行 使用 vs code 的应用程序,现在它像以前一样工作了。