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

dyld: Library not loaded: FBAEMKit #1818

Closed
5 tasks done
vladogrigorov opened this issue Aug 13, 2021 · 9 comments
Closed
5 tasks done

dyld: Library not loaded: FBAEMKit #1818

vladogrigorov opened this issue Aug 13, 2021 · 9 comments

Comments

@vladogrigorov
Copy link

Checklist before submitting a bug report

Xcode version

12.5.1

Swift version

No response

Installation platform & version

[Manual] version 11.1.0

Package

Core

Goals

I'm updating Facebook SDK from version 11.0.1 to 11.1.0 in my application. I'm manually adding the xcframeworks to the project file, I'm not using SPM or CocoaPods.
The project builds successfully, but the app crashes immediately on launch:

dyld: Library not loaded: @rpath/FBAEMKit.framework/FBAEMKit
  Referenced from: /FBSDKCoreKit.framework/FBSDKCoreKit
  Reason: image not found

There is no FBAEMKit in the FacebookSDK.xcframework.zip. I see no mention of it neither in the changelog nor in the getting started page.

What is FBAEMKit, why do I need yet another Facebook framework and where can I get it from?

Expected results

My app builds and runs fine.

Actual results

My app crashes on launch because FBAEMKit is missing.

Steps to reproduce

No response

Code samples & details

// INSERT YOUR CODE HERE
var example = "Example code"
@jawwad
Copy link
Contributor

jawwad commented Aug 24, 2021

Hi @vladogrigorov - Sorry about the issue you encountered with the missing FBAEMKit. I've updated the FacebookSDK.xcframework.zip. Could you try again with the updated file?

https://github.com/facebook/facebook-ios-sdk/releases/download/v11.1.0/FacebookSDK.xcframework.zip

@vladogrigorov
Copy link
Author

Thank you, jawwad! After adding FBAEMKit to my project, the app builds and runs fine.

@LongJiang90
Copy link

i have same err. i'm use pod update to install sdk.
this is my pod file

  pod 'FBSDKCoreKit'
  pod 'FBSDKCoreKit_Basics'
  pod 'FBAEMKit'
  pod 'FBSDKLoginKit'
  pod 'FBSDKShareKit'
  pod 'FBSDKGamingServicesKit'

v11.2.1 don't have
v12.1.0 have err.

pls help me, tks!

@jawwad
Copy link
Contributor

jawwad commented Dec 7, 2021

@LongJiang90 - We just released v12.2.0 yesterday. Could you try with that?

Also could you try with leaving out FBSDKCoreKit_Basics and FBAEMKit since they should now be included automatically?

  pod 'FBSDKCoreKit'
  pod 'FBSDKLoginKit'
  pod 'FBSDKShareKit'
  pod 'FBSDKGamingServicesKit'

@gputhread
Copy link

gputhread commented May 13, 2023

same here with latest unity fb sdk on xcode 14.3? should i downgrade?

dlopen(/var/containers/Bundle/Application/8963FA8B-4ABE-4B3C-87F4-BCFCD38FBA11/myapp.app/Frameworks/UnityFramework.framework/UnityFramework, 0x0109): Library not loaded: @rpath/FBAEMKit.framework/FBAEMKit

[https://github.com//issues/2128]

@elguero44
Copy link

Exact same problem as above, latest Unity FB SDK v16.0 and Xcode 14.3.1. Updated from facebook v11 which had zero issues. How can this be solved?

@ismarekathakusuma
Copy link

Exact same problem as above, latest Unity FB SDK v16.0.1 , Updated from facebook v9.01
MacOS 13.1 (22C65), Xcode 13.1 (22C65), swift-driver version: 1.62.15 Apple Swift version 5.7.2 (swiftlang-5.7.2.135.5 clang-1400.0.29.51)

@nancyuzunowa
Copy link

I also has the same issue with FB SDK 16.0.2, macOS Sonoma 14.0 and Xcode 15.0.1
Any updated on that? What should I do ?

@dnsuriyanzgit
Copy link

Changed use_frameworks! :linkage => :static to use_frameworks! Fixed the issue. Check the comment linked. Instead of manually editing Podfile, you guys can untick Link frameworks statically in iOS Resolver Setting (from EDM menu in Unity) which will do similar for every build

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

No branches or pull requests

9 participants