roughike / flutter_facebook_login

A Flutter plugin for allowing users to authenticate with native Android & iOS Facebook login SDKs.
BSD 2-Clause "Simplified" License
405 stars 331 forks source link

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

Closed maheshj01 closed 4 years ago

maheshj01 commented 4 years ago

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 commented 4 years ago

Same here, when I try to run from vscode.

Kiruel commented 4 years ago

https://github.com/flutter/flutter/issues/33423#issuecomment-533774195 solve my problem.

maheshj01 commented 4 years ago

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

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

maheshj01 commented 4 years ago

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 commented 4 years ago

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

maheshj01 commented 4 years ago

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 commented 4 years ago
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!
maheshj01 commented 4 years ago

finally this helped me solved https://github.com/roughike/flutter_facebook_login/issues/222#issuecomment-568164311 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