Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flutter_facebook_login plugin.h not found while building archive for appstore #220

Closed
maheshmnj opened this issue Dec 6, 2019 · 8 comments

Comments

@maheshmnj
Copy link

I am getting error while building archive

..../Runner/GeneratedPluginRegistrant.m:6:9: 'flutter_facebook_login/FacebookLoginPlugin.h' file not found

while the app builds and runs successfully on ios
heres the flutter doctor -v output

[✓] Flutter (Channel stable, v1.9.1+hotfix.6, on Mac OS X 10.14.6 18G1012, locale en-IN)
    • Flutter version 1.9.1+hotfix.6 at /Users/almac03/Documents/flutter
    • Framework revision 68587a0916 (3 months ago), 2019-09-13 19:46:58 -0700
    • Engine revision b863200c37
    • Dart version 2.5.0

 
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    • Android SDK at /Users/almac03/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-29, build-tools 29.0.2
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.0)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.0, Build version 11A420a
    • CocoaPods version 1.7.5

[✓] Android Studio (version 3.4)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 39.0.1
    • Dart plugin version 183.6270
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)

[✓] VS Code (version 1.40.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.7.0

[✓] Connected device (1 available)
    • iPhone 11 Pro Max • B1D782BE-C888-47D1-9BF7-91F523DF5A68 • ios •
      com.apple.CoreSimulator.SimRuntime.iOS-13-0 (simulator)

• No issues found!
@Kiruel
Copy link

Kiruel commented Dec 13, 2019

Same here, when I try to run from vscode.

@Kiruel
Copy link

Kiruel commented Dec 13, 2019

flutter/flutter#33423 (comment) solve my problem.

@maheshmnj
Copy link
Author

flutter/flutter#33423 (comment) solve my problem.

I tried that as well but it didnt help,gives same error.

@maheshmnj
Copy link
Author

maheshmnj commented Dec 17, 2019

flutter/flutter#33423 (comment) solve my problem.

according to the comment if I Delete the pod file its pods will also get deleted

pod 'FBSDKLOGINKIT' //
  1. I deleted the pod file
  2. debugged the flutter app which installs the pod file
  3. build the archive from xcode
  4. it still fails.
    have you tried building the archive are you able to build it?

@Kiruel
Copy link

Kiruel commented Dec 19, 2019

Yes, I just try right now and its succeeded. @maheshmnj

@maheshmnj
Copy link
Author

maheshmnj commented Dec 20, 2019

Yes, I just try right now and its succeeded. @maheshmnj

I follwed the steps above but that didn't work for me, is it mandatory to add

pod 'FBSDKLOGINKIT' //

And what version of flutter are you using?

@Kiruel
Copy link

Kiruel commented Dec 20, 2019

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel master, v1.13.3-pre.12, on Mac OS X 10.15.1 19B88, locale en-FR)
 
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[✓] Xcode - develop for iOS and macOS (Xcode 11.2.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 3.5)
[✓] VS Code (version 1.40.2)
[✓] Connected device (4 available)

• No issues found!

@maheshmnj
Copy link
Author

maheshmnj commented Jan 7, 2020

finally this helped me solved #222 (comment)
also I ran open ios/xcworkspace from the root of the project,this launched in xcode and I built the archive,earlier I was opening ios folder in xcode it was throwing the error during build

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants