Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Module 'connectivity not found' in iOS build of Flutter application

Tags:

ios

flutter

I have been trying to build my flutter app in iOS simulator but getting build error with following screenshot.

Where my Xcode version is 11.0, CocoaPods version 1.9.3, Flutter version 1.22.0

I have also upgraded connectivity package from 0.4.9+2 to 0.4.9+3 which is latest one. Following some steps by googling but no one is working yet. However my android build is fully ok.

Thanks in advance.

enter image description here

like image 985
Mimu Saha Tishan Avatar asked Oct 07 '20 09:10

Mimu Saha Tishan


People also ask

Do I need CocoaPods for Flutter?

System requirements Flutter supports iOS 11 and later. Additionally, you will need CocoaPods version 1.10 or later.


1 Answers

I solved this problem by setting in the podfile

platform :ios, '12.1'

And then later inserting the same version in Xcode as well

Xcode

like image 59
Luca Iaconelli Avatar answered Nov 03 '22 06:11

Luca Iaconelli