capacitor-community / facebook-login

Facebook Login support
MIT License
103 stars 54 forks source link

Undefined symbol: _OBJC_CLASS_$_FBSDKAccessToken/FBSDKLoginManager #16

Closed JovanShandro closed 3 years ago

JovanShandro commented 3 years ago

Bug in IOS version or am I missing something.

Describe the bug I followed all the steps to use the plugin and it worked fine for android. However for IOS I got the error shown in the screenshot below . I also took the steps I could find in the provided link in the readme for facebook login guide in ios just before the bundle id part. I set up your development environment using Cocoapods, and then tried again but get the same error.

To Reproduce Steps to reproduce the behavior:

  1. Create an ionic capacitor project
  2. Run 'yarn build' and 'npx cap add ios'
  3. Do all necessary configurations for the plugin to work for ios
  4. pod 'FBSDKLoginKit' in the Podfile and then run pod install 5.Run npx cap sync ios
  5. Run project in xcode

Expected behavior I expect the build to finish and an emulator to be opened

Screenshots error

Desktop (please complete the following information):

Thank you.

rdlabo commented 3 years ago

Did you do 'npx cap update' after install this plugin. this command run pod install automatically. thanks.

eryzerz commented 3 years ago

I got same problem, already did npx cap update and sync

Edit: Nevermind. I found the solution. Clean build then build again

rdlabo commented 3 years ago

Clean build then build again

Maybe this is solution in this issue. Thanks comment! @eryzerz

JovanShandro commented 3 years ago

Thank @eryzerz. Clean build and building again also fixed it for me.

loburets commented 3 years ago

If anyone wondering how to clean the build: image

tekpokhrel commented 3 years ago

Yes. Clean Build Folder worked for me too! Thanks

stefanhk31 commented 3 years ago

This is occurring for me, and clean/build doesn't fix it.

Xcode 12.5.1 Capacitor/core 2.4.7 Capacitor/cli 2.4.4 FB login plugin 1.0.3