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

App crashes when FacebookLogin is linked to non application target #2443

Open
5 tasks done
MartinStrambach opened this issue Jun 19, 2024 · 0 comments
Open
5 tasks done

Comments

@MartinStrambach
Copy link

MartinStrambach commented Jun 19, 2024

Checklist before submitting a bug report

Xcode version

15.4

Facebook iOS SDK version

17.0.2

Dependency Manager

SPM

SDK Framework

Login

Goals

Use Facebook login to a dynamic library (non-application target).

Expected results

App doesn't crash like in pre v17 SDK version.

Actual results

App crashes on launch.

dyld[41633]: Library not loaded: @rpath/FBAEMKit.framework/FBAEMKit Referenced from: <E2362606-5D3C-3F7B-8F4F-375DCF5FAF15> /private/var/containers/Bundle/Application/E33B2F85-1591-4224-9482-81D7FDEC6EC5/FacebookTest.app/Frameworks/Framework1.framework/Framework1 Reason: tried: '/Users/martin.strambach/Library/Developer/Xcode/DerivedData/FacebookTest-gvmojovtkpwmysapcajwigjdrtox/Build/Products/Debug-iphoneos/PackageFrameworks/FBAEMKit.framework/FBAEMKit' (no such file), '/private/preboot/Cryptexes/OS/Users/martin.strambach/Library/Developer/Xcode/DerivedData/FacebookTest-gvmojovtkpwmysapcajwigjdrtox/Build/Products/Debug-iphoneos/PackageFrameworks/FBAEMKit.framework/FBAEMKit' (no such file), '/private/var/containers/Bundle/Application/E33B2F85-1591-4224-9482-81D7FDEC6EC5/FacebookTest.app/Frameworks/FBAEMKit.framework/FBAEMKit' (no such file), '/private/var/containers/Bundle/Application/E33B2F85-1591-4224-9482-81D7FDEC6EC5/FacebookTest.app/Frameworks/Framework1.framework/Frameworks/FBAEMKit.framework/FBAEMKit' (no such file), '/Users/martin.strambach/Library/Developer/Xcode/DerivedData/FacebookTest-gvmojovtkpwmysapcajwigjdrtox/Build/Products/Debug-iphoneos/PackageFrameworks/FBAEMKit.framework/FBAEMKit' (no such file), '/private/preboot/Cryptexes/OS/Users/martin.strambach/Library/Developer/Xcode/DerivedData/FacebookTest-gvmojovtkpwmysapcajwigjdrtox/Build/Products/Debug-iphoneos/PackageFrameworks/FBAEMKit.framework/FBAEMKit' (no such file), '/private/var/containers/Bundle/Application/E33B2F85-1591-4224-9482-81D7FDEC6EC5/FacebookTest.app/Frameworks/FBAEMKit.framework/FBAEMKit' (no such file), '/Users/martin.strambach/Library/Developer/Xcode/DerivedData/FacebookTest-gvmojovtkpwmysapcajwigjdrtox/Build/Products/Debug-iphoneos/PackageFrameworks/FBAEMKit.framework/FBAEMKit' (no such file), '/private/preboot/Cryptexes/OS/Users/martin.strambach/Library/Developer/Xcode/DerivedData/FacebookTest-gvmojovtkpwmysapcajwigjdrtox/Build/Products/Debug-iphoneos/PackageFrameworks/FBAEMKit.framework/FBAEMKit' (no such file), '/private/var/containers/Bundle/Application/E33B2F85-1591-4224-9482-81D7FDEC6EC5/FacebookTest.app/Frameworks/FBAEMKit.framework/FBAEMKit' (no such file)

Steps to reproduce

FacebookTest.zip

Example project in the attachment. Run the project on a physical device and the app crashes on launch. Switch Facebook SDK to version 16.3.1 and launch again. It then runs just fine.
When I link the SDK to the application target it works but it's not what I'm trying to achieve.

Code samples & details

No response

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

No branches or pull requests

1 participant