roughike / flutter_facebook_login

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

Cannot build iOS #266

Open honkevin opened 4 years ago

honkevin commented 4 years ago

Any idea on this issue?

Error output from Xcode build: ↳ BUILD FAILED Xcode's output: ↳ 2 warnings generated. In file included from /Users/honkevin/Github/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_facebook_login-3.0.0/ios/Classes/FacebookLoginPlugin.m:3: In file included from /Users/honkevin/Github/efx/ios/Pods/Headers/Private/FBSDKLoginKit/FBSDKLoginKit.h:27: /Users/honkevin/Github/efx/ios/Pods/Headers/Private/FBSDKLoginKit/FBSDKLoginButton.h:36:9: fatal error: module 'FBSDKCoreKit' not found @import FBSDKCoreKit;


    1 error generated.
    note: Using new build system
    note: Building targets in parallel
    note: Planning build
    note: Constructing build description
Could not build the precompiled application for the device.
sajidbarcha commented 4 years ago

I am also seeing this issue.

Sajids-MBP:cool_beans siqbal$ flutter doctor Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel stable, v1.12.13+hotfix.9, on Mac OS X 10.15.4 19E287, locale en-US)

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3) [✓] Xcode - develop for iOS and macOS (Xcode 11.4.1) [✓] Android Studio (version 3.6) [✓] VS Code (version 1.44.2) [✓] Connected device (1 available)

Here is the console output

Launching lib/main_prod.dart on iPhone 8 in debug mode... Xcode build done. 6.2s Failed to build iOS app Error output from Xcode build: ↳ BUILD FAILED Xcode's output: ↳ In file included from /Users/siqbal/DevTools/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_facebook_login-3.0.0/ios/Classes/FacebookLoginPlugin.m:3: In file included from /Users/siqbal/Coding/Flutter/cool_beans/ios/Pods/Headers/Private/FBSDKLoginKit/FBSDKLoginKit.h:27: /Users/siqbal/Coding/Flutter/cool_beans/ios/Pods/Headers/Private/FBSDKLoginKit/FBSDKLoginButton.h:36:9: fatal error: module 'FBSDKCoreKit' not found @import FBSDKCoreKit;


    1 error generated.
Could not build the application for the simulator.
Error launching application on iPhone 8.
Exited (sigterm)
darrencole commented 4 years ago

Same here. Please assist.

2 warnings generated. In file included from /Users/darrencole/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_facebook_login-3.0.0/ios/Classes/FacebookLoginPlugin.m:3: In file included from /Users/darrencole/FanDemand/flmobile/ios/Pods/Headers/Private/FBSDKLoginKit/FBSDKLoginKit.h:27: /Users/darrencole/FanDemand/flmobile/ios/Pods/Headers/Private/FBSDKLoginKit/FBSDKLoginButton.h:36:9: fatal error: module 'FBSDKCoreKit' not found @import FBSDKCoreKit;


    1 error generated.

Darrens-MacBook-Pro:~ darrencole$ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, v1.12.13+hotfix.9, on Mac OS X 10.15.4 19E287,
    locale en-GB)

[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 11.4.1)
[✓] Android Studio (version 3.6)
[✓] IntelliJ IDEA Community Edition (version 2019.3.3)
[!] VS Code (version 1.44.2)
    ✗ Flutter extension not installed; install from
      https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter
[✓] Connected device (2 available)

! Doctor found issues in 1 category.
darrencole commented 4 years ago

Following this advice I found online: https://github.com/roughike/flutter_facebook_login/issues/214#issuecomment-563272023

I changed the version of these (in Podfile.lock) from 5.15.1 to 5.8.0:

Our application now runs on iOS.

delphicarlos commented 3 years ago

In PodFile, search target 'Runner' do and Add this instructions:

Keep pod path relative so it can be checked into Podfile.lock.

pod 'Flutter', :path => 'Flutter' pod 'FBSDKCoreKit', :modular_headers => true

mclark4386 commented 3 years ago

For me it looked like this:

target 'Runner' do
    flutter_install_all_ios_pads File.dirname(File.realpath(__FILE__))
    pod 'FBSDKCoreKit', :modular_headers => true
end