【问题标题】:Flutter Xcode fatal error when trying to run and build into an iPhone emulator尝试运行并构建到 iPhone 模拟器时出现 Flutter Xcode 致命错误
【发布时间】:2020-05-07 09:56:24
【问题描述】:

我正在尝试将应用程序构建到我在 Flutter 中编码的 iOS。不幸的是,有一个错误,构建不会让步。错误如下。我该如何解决这个问题?

我已将 Firebase 添加到我的应用程序中,它修复了以前的错误,但这个错误仍然存​​在。

Xcode build done.                                           23.0s
Failed to build iOS app
Error output from Xcode build:
↳
    ** BUILD FAILED **


Xcode's output:
↳
    /Users/USERNAME/Desktop/Flutter/SyncShop APP/syncshop/ios/Runner/GeneratedPluginRegistrant.m:10:9: fatal error: module 'connectivity' not
    found
    @import connectivity;
     ~~~~~~~^~~~~~~~~~~~
    1 error generated.
    note: Using new build system
    note: Planning build
    note: Constructing build description

Could not build the application for the simulator.
Error launching application on iPhone 11 Pro Max.

【问题讨论】:

  • 你解决了这个问题吗?我一直面临这个问题并试图解决,但还没有得到任何合适的解决方案。

标签: ios xcode flutter app-store


【解决方案1】:

我更改了这个文件

pubspec.yaml -> 连接性:0.4.4+1 Podfile -> 平台:ios,'9.0'

flutter clean
flutter run

【讨论】:

  • 我也有同样的问题。但我无法用你的回答来解决它
猜你喜欢
  • 2022-12-29
  • 2020-09-30
  • 2023-03-14
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2021-03-06
  • 2017-09-11
  • 1970-01-01
相关资源
最近更新 更多