Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GoogleUtilities/GULSceneDelegateSwizzler.h file not found

Unable to build Flutter app on iOS/Xcode

Pubspec file with used dependencies

Already tried all the pod install/upgrade, flutter clean, pub install etc solutions.

Error message looks like this:

 ios/Pods/FirebaseAuth/Firebase/Auth/Source/Auth/FIRAuth.m:32:9: fatal error:
    'GoogleUtilities/GULSceneDelegateSwizzler.h' file not found
    #import <GoogleUtilities/GULSceneDelegateSwizzler.h>
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ios/Pods/FirebaseAuth/Firebase/Auth/Source/Auth/FIRAuth.m:32:9: note: did not find header
    'GULSceneDelegateSwizzler.h' in framework 'GoogleUtilities' (loaded from 'build/ios/Debug-iphonesimulator/GoogleUtilities')
    1 error generated.

Would be very grateful for any input on this issue.

like image 200
thodda Avatar asked Jan 15 '20 15:01

thodda


2 Answers

Update pods from Terminal:

pod update

That should resolve your problem.

ps. backup your app before update

like image 153
Dejan Malbasic Avatar answered Oct 19 '22 01:10

Dejan Malbasic


Move into iOS directory (in your flutter project) and update pod

cd ios
pod update
cd..
flutter clean
like image 1
Mohd Danish Khan Avatar answered Oct 19 '22 00:10

Mohd Danish Khan