Xcode build failure with error 'firebase_auth/FirebaseAuthPlugin.h' file not found

3,501 views
Skip to first unread message

Danny Hui

unread,
Aug 1, 2018, 11:50:07 PM8/1/18
to Flutter Dev
Hi All,

I added the following flutter plugin to my project
google_sign_in: "^3.0.4"
firebase_auth: ^0.5.15
flutter_facebook_login: ^1.1.1

Here is the result GeneratedPluginRegistrant.m
//
// Generated file. Do not edit.
//

#import "GeneratedPluginRegistrant.h"
#import <firebase_auth/FirebaseAuthPlugin.h>
#import <flutter_facebook_login/FacebookLoginPlugin.h>
#import <flutter_webview_plugin/FlutterWebviewPlugin.h>
#import <google_sign_in/GoogleSignInPlugin.h>
#import <url_launcher/UrlLauncherPlugin.h>

@implementation GeneratedPluginRegistrant

+ (void)registerWithRegistry:(NSObject<FlutterPluginRegistry>*)registry {
[FLTFirebaseAuthPlugin registerWithRegistrar:[registry registrarForPlugin:@"FLTFirebaseAuthPlugin"]];
[FacebookLoginPlugin registerWithRegistrar:[registry registrarForPlugin:@"FacebookLoginPlugin"]];
[FlutterWebviewPlugin registerWithRegistrar:[registry registrarForPlugin:@"FlutterWebviewPlugin"]];
[FLTGoogleSignInPlugin registerWithRegistrar:[registry registrarForPlugin:@"FLTGoogleSignInPlugin"]];
[FLTUrlLauncherPlugin registerWithRegistrar:[registry registrarForPlugin:@"FLTUrlLauncherPlugin"]];
}

@end


Everything works fine in AndroidStudio. 

I tried to build the project in iOS by flutter. It also works fine.

Here is the output of $ pod install

Analyzing dependencies

Fetching podspec for `Flutter` from `.symlinks/flutter/ios-release`

Fetching podspec for `firebase_auth` from `.symlinks/plugins/firebase_auth/ios`

Fetching podspec for `flutter_facebook_login` from `.symlinks/plugins/flutter_facebook_login/ios`

Fetching podspec for `flutter_webview_plugin` from `.symlinks/plugins/flutter_webview_plugin/ios`

Fetching podspec for `google_sign_in` from `.symlinks/plugins/google_sign_in/ios`

Fetching podspec for `url_launcher` from `.symlinks/plugins/url_launcher/ios`

Downloading dependencies

Using Bolts (1.9.0)

Using FBSDKCoreKit (4.35.0)

Using FBSDKLoginKit (4.35.0)

Using Firebase (5.4.1)

Using FirebaseAnalytics (5.0.1)

Using FirebaseAuth (5.0.2)

Using FirebaseCore (5.0.6)

Using FirebaseInstanceID (3.1.1)

Using Flutter (1.0.0)

Using GTMOAuth2 (1.1.6)

Using GTMSessionFetcher (1.2.0)

Using GoogleSignIn (4.1.2)

Using GoogleToolboxForMac (2.1.4)

Using firebase_auth (0.0.1)

Using flutter_facebook_login (0.0.1)

Using flutter_webview_plugin (0.0.1)

Using google_sign_in (0.0.1)

Using nanopb (0.3.8)

Using url_launcher (0.0.1)

Generating Pods project

Integrating client project

Pod installation complete! There are 6 dependencies from the Podfile and 19 total pods installed.


[!] Automatically assigning platform `ios` with version `8.0` on target `Runner` because no platform was specified. Please specify a platform for this target in your Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform`.



Here is my flutter version

$ ~/flutter/bin/flutter doctor -v

[✓] Flutter (Channel beta, v0.5.1, on Mac OS X 10.13.4 17E199, locale en-HK)

    • Flutter version 0.5.1 at /Users/frontend/flutter

    • Framework revision c7ea3ca377 (9 weeks ago), 2018-05-29 21:07:33 +0200

    • Engine revision 1ed25ca7b7

    • Dart version 2.0.0-dev.58.0.flutter-f981f09760


[✓] iOS toolchain - develop for iOS devices (Xcode 9.4.1)

    • Xcode at /Applications/Xcode.app/Contents/Developer

    • Xcode 9.4.1, Build version 9F2000

    • ios-deploy 1.9.2

    • CocoaPods version 1.5.3


[✓] Android Studio (version 3.1)

    • Android Studio at /Applications/Android Studio.app/Contents

    • Flutter plugin version 25.0.1

    • Dart plugin version 173.4700

    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)


[!] Connected devices

    ! No devices available


! Doctor found issues in 1 categories.


However, I cannot build the project in Xcode. There is an error : 
'firebase_auth/FirebaseAuthPlugin.h' file not found

I tried clean & build the product after removing pod files.

Thanks!

Robin Olisa

unread,
May 6, 2019, 2:26:36 PM5/6/19
to Flutter Dev
Did you find a solution for this? because I'm having the same problem

Giuliano

unread,
May 6, 2019, 3:13:39 PM5/6/19
to Flutter Dev
Same problem here, I have no more ideas to do

Andy Greenshaw

unread,
May 6, 2019, 3:16:37 PM5/6/19
to Flutter Dev, Giuliano
What version of Flutter are you using? Make sure it’s >= 1.2.0 and do a ‘flutter clean’ and delete the .build and .packages directories (if they still exist) before building / running again.
On 6 May 2019, 20:13 +0100, Giuliano <webm...@cgn.inf.br>, wrote:
Same problem here, I have no more ideas to do

--
You received this message because you are subscribed to the Google Groups "Flutter Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Andy Greenshaw

unread,
May 6, 2019, 3:18:09 PM5/6/19
to Flutter Dev, Giuliano
Note, even if your current Flutter version is > 1.0.0 do this in case you created your project when your version was < 1.0.0

Giuliano

unread,
May 6, 2019, 3:36:19 PM5/6/19
to Flutter Dev
The same problem occurred, plugin not found

fatal error: 'Flutter/Flutter.h' file not found
fatal error: 'path_provider/path_provider.h file not found

Em segunda-feira, 6 de maio de 2019 16:18:09 UTC-3, Andy Greenshaw escreveu:
Note, even if your current Flutter version is > 1.0.0 do this in case you created your project when your version was < 1.0.0
On 6 May 2019, 20:14 +0100, Andy Greenshaw <andy...@gmail.com>, wrote:
What version of Flutter are you using? Make sure it’s >= 1.2.0 and do a ‘flutter clean’ and delete the .build and .packages directories (if they still exist) before building / running again.
On 6 May 2019, 20:13 +0100, Giuliano <webm...@cgn.inf.br>, wrote:
Same problem here, I have no more ideas to do

--
You received this message because you are subscribed to the Google Groups "Flutter Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutt...@googlegroups.com.

Rob Tea

unread,
Jul 25, 2019, 8:27:37 AM7/25/19
to Flutter Development (flutter-dev)
Same, no matter what I do I cant build a working IOS version. I always get 'firebase_auth/FirebaseAuthPlugin.h' file not found #import <firebase_auth/FirebaseAuthPlugin.h>

Miguel

unread,
Jul 26, 2019, 7:34:27 AM7/26/19
to Flutter Development (flutter-dev)
Same error I have tried all. I tried, pod update, pod install, flutter clean, delete the build and .packages folders... and error is still there :(

GeneratedPluginRegistrant.m:6:9: fatal error: 'camera/CameraPlugin.h' file not found
    #import <camera/CameraPlugin.h>
            ^~~~~~~~~~~~~~~~~~~~~~~

Andy Greenshaw

unread,
Jul 26, 2019, 7:39:16 AM7/26/19
to Flutter Development (flutter-dev), Miguel
I could only fix this by creating a new project (with flutter create) of the same name, then copying across all my new / created files and updating the generated files if necessary (eg Android manifests). A pain, but it worked.
--
You received this message because you are subscribed to the Google Groups "Flutter Development (flutter-dev)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-dev/6b76485d-7b68-4b56-98c4-d8a4a78a6583%40googlegroups.com.

PAWAN SHAHANI

unread,
Jul 26, 2019, 10:11:03 AM7/26/19
to Rob Tea, Flutter Development (flutter-dev)
Did you try to install pods ??

--
You received this message because you are subscribed to the Google Groups "Flutter Development (flutter-dev)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
--
photo
Pawan G Shahani
+91-7506170967  | pawan....@gmail.com  | Skype: shahani.pawan
 

Rabih M. ElBaba (Gmail)

unread,
Jul 27, 2019, 6:37:56 PM7/27/19
to Robin Olisa, Flutter Dev
try the bleow

sudo gem install cocoapods
pod repo update
pod install

--
You received this message because you are subscribed to the Google Groups "Flutter Dev" group.

To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages