Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

ios

flutter

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

        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.
like image 247
Hkm Sadek Avatar asked Jun 25 '26 11:06

Hkm Sadek


1 Answers

After wasting so many times, I found only following command in terminal under Project directory folder is worked for me

rm ios/Podfile && flutter build ios
like image 53
Mimu Saha Tishan Avatar answered Jun 27 '26 01:06

Mimu Saha Tishan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!