简体   繁体   English

flutter xcode build failed 致命错误:找不到模块“连接”

[英]flutter xcode build failed fatal error: module 'connectivity' not found

I am trying to run my little old project.我正在尝试运行我的旧项目。 I updating all the plugins and code issues are solved.我更新了所有插件,代码问题解决了。 but now if I run flutter run I get the bellow error但是现在如果我运行 flutter run 我会收到以下错误

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


    Xcode's output:
    ↳
        /Users/mdzainalabedin/padelmatchv2/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.

浪费了这么多次之后,我发现在项目目录文件夹下的终端中只有以下命令对我有用

rm ios/Podfile && flutter build ios

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM