facebook / facebook-ios-sdk

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

When I integrate Facebook SDK 17.0.2 through SPM, the following error is reported. How can I solve it? dyld[11936]: Library not loaded: '@rpath/FBSDKCoreKit.framework/FBSDKCoreKit' #2432

Open sandy-boop opened 6 months ago

sandy-boop commented 6 months ago

Checklist before submitting a bug report

Xcode version

15.4

Facebook iOS SDK version

17.0.2

Dependency Manager

SPM

SDK Framework

Core

Goals

dyld[11936]: Library not loaded: '@rpath/FBSDKCoreKit.framework/FBSDKCoreKit'

Expected results

dyld[11936]: Library not loaded: '@rpath/FBSDKCoreKit.framework/FBSDKCoreKit'

Actual results

dyld[11936]: Library not loaded: '@rpath/FBSDKCoreKit.framework/FBSDKCoreKit'

Steps to reproduce

1

Code samples & details

// INSERT YOUR CODE HERE
var example = "Example code"
JackJeme commented 3 months ago

the same to me

JackJeme commented 3 months ago

dyld[2034]: Library not loaded: @rpath/FBAEMKit.framework/FBAEMKit Referenced from: <0069129C-8A7B-3280-A29F-CA018643E393> /private/var/containers/Bundle/Application/4F02E288-C333-48F5-BBE4-BB4E89F7C908/SDKDemo.app/Frameworks/SDKKit.framework/SDKKit Reason: tried: '/usr/lib/swift/FBAEMKit.framework/FBAEMKit' (no such file, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/FBAEMKit.framework/FBAEMKit' (no such file), '/Users/inspire/Library/Developer/Xcode/DerivedData/SDKKit-fsqmsjwszwzvuqdgfxcsxbjvopwx/Build/Products/Debug-iphoneos/PackageFrameworks/FBAEMKit.framework/FBAEMKit' (no such file), '/private/preboot/Cryptexes/OS/Users/inspire/Library/Developer/Xcode/DerivedData/SDKKit-fsqmsjwszwzvuqdgfxcsxbjvopwx/Build/Products/Debug-iphoneos/PackageFrameworks/FBAEMKit.framework/FBAEMKit' (no such file), '/private/var/containers/Bundle/Application/4F02E288-C333-48F5-BBE4-BB4E89F7C908/SDKDemo.app/Frameworks/FBAEMKit.framework/FBAEMKit' (no such file), '/private/var/containers/Bundle/Application/4F02E288-C333-48F5-BBE4-BB4E89F7C908/SDKDemo.app/Frameworks/SDKKit.framework/Frameworks/FBAEMKit.framework/FBAEMKit' (no such file), '/Users/inspire/Library/Developer/Xcode/DerivedData/SDKKit-fsqmsjwszwzvuqdgfxcsxbjvopwx/Build/Products/Debug-iphoneos/PackageFrameworks/FBAEMKit.framework/FBAEMKit' (no such file), '/private/preboot/Cryptexes/OS/Users/inspire/Library/Developer/Xcode/DerivedData/SDKKit-fsqmsjwszwzvuqdgfxcsxbjvopwx/Build/Products/Debug-iphoneos/PackageFrameworks/FBAEMKit.framework/FBAEMKit' (no such file), '/private/var/containers/Bundle/Application/4F02E288-C333-48F5-BBE4-BB4E89F7C908/SDKDemo.app/Frameworks/FBAEMKit.framework/FBAEMKit' (no such file), '/Users/inspire/Library/Developer/Xcode/DerivedData/SDKKit-fsqmsjwszwzvuqdgfxcsxbjvopwx/Build/Products/Debug-iphoneos/PackageFrameworks/FBAEMKit.framework/FBAEMKit' (no such file), '/private/preboot/Cryptexes/OS/Users/inspire/Library/Developer/Xcode/DerivedData/SDKKit-fsqmsjwszwzvuqdgfxcsxbjvopwx/Build/Products/Debug-iphoneos/PackageFrameworks/FBAEMKit.framework/FBAEMKit' (no such file), '/private/var/containers/Bundle/Application/4F02E288-C333-48F5-BBE4-BB4E89F7C908/SDKDemo.app/Frameworks/FBAEMKit.framework/FBAEMKit' (no such file) Logging Error: Failed to initialize logging system. Log messages may be missing. If this issue persists, try setting IDEPreferLogStreaming=YES in the active scheme actions environment variables.

but work in 16.3.1 version