facebook / facebook-ios-sdk

Used to integrate the Facebook Platform with your iOS & tvOS apps.
https://developers.facebook.com/docs/ios
Other
7.73k stars 3.5k forks source link

Can't use FBSDKLogin using Swift Package Manager #2367

Open OS-ricardomoreirasilva opened 1 month ago

OS-ricardomoreirasilva commented 1 month ago

Checklist before submitting a bug report

Xcode version

15.0

Facebook iOS SDK version

17.0.0

Dependency Manager

SPM

SDK Framework

Login

Goals

I'm building a xcframework that uses FBSDKLogin to provide logins with Facebook.

Expected results

Until 16.3.1 I was able to run my xcframework including FBSDKLogin.

Actual results

After uploading to 17.0.0 and updating my xcframework, when using it, I'm faced with the following error:

Looking into the actual Facebook changes, it appears that FBSDKLogin is now available as a Dynamic instead of a Stack framework. But this change is not mentioned anywhere on the documentation or changelogs. I'd like to understand how can I make it work properly as it was before.

Steps to reproduce

No response

Code samples & details

No response

dolzhenko-tony commented 1 month ago

+1

jorgmateos commented 1 month ago

+1

vahancouver commented 4 weeks ago

ANY NEWS ON THIS?

dolzhenko-tony commented 4 weeks ago

My issue was in adding Facebook SDK as dependency to my framework. I transformed it into dynamic Swift Package and issue was solved by spm. Hopefully it will help anybody.

patrikbelis commented 2 weeks ago

+1

JubeHuang commented 6 days ago

Xcode version 15.1

Facebook iOS SDK version 17.0.1

Same here. I encountered the same issue after uploading from v16.2.1. The project builds successfully, but the app crashes once the ViewController showed up. The error message: dyld[1101]: Library not loaded: @rpath/FBAEMKit.framework/FBAEMKit I would like to know how to solve this error.

spetrov commented 3 days ago

I'm having the same issue with Facebook iOS SDK 17.0.1