【发布时间】:2022-10-06 15:37:33
【问题描述】:
我正在尝试将库 react-native-fbsdk-next 添加到我的本机应用程序中,以使用 facebook 按钮登录。我按照 facebook 的安装说明为 iOS 设置 Facebook SDK。该应用程序成功构建,但是,我收到此错误:
dyld [54430]:库未加载:
@rpath/FBSDKCoreKit.framework/FBSDKCoreKit
Referenced from: /Users/user/Library/Developer/CoreSimulator/Devices/B0556C9E-4F68-4C77-9C53-17AC58D85278/data/Containers/Bundle/Application/97EBA641-370F-4795-8218-83D7D7F9F778/eCommercialApp.app/Frameworks/react_native_fbsdk_next.framework/react_native_fbsdk_next
Reason: tried: \'/Users/user/Library/Developer/Xcode/DerivedData/eCommercialApp-dehghjkotvmxkidrbfdhdrffgutk/Build/Products/Debug-iphonesimulator/FBSDKCoreKit.framework/FBSDKCoreKit\' (file does not start with MH_MAGIC[_64], file does not start with MH_MAGIC[_64], fat file, but missing compatible architecture (have \'arm64,x86_64\', need \'x86_64\')), \'/Users/user/Library/Developer/Xcode/DerivedData/eCommercialApp-dehghjkotvmxkidrbfdhdrffgutk/Build/Products/Debug-iphonesimulator/PackageFrameworks/FBSDKCoreKit.framework/FBSDKCoreKit\' (no such file), \'/Users/user/Library/Developer/CoreSimulator/Devices/B0556C9E-4F68-4C77-9C53-17AC58D85278/data/Containers/Bundle/Application/97EBA641-370F-4795-8218-83D7D7F9F778/eCommercialApp.app/Frameworks/FBSDKCoreKit.framework/FBSDKCoreKit\' (file does not start with MH_MAGIC[_64], file does not start with MH_MAGIC[_64], fat file, but missing compatible architecture (have \'arm64,x86_64\', need \'x86_64\')), \'/Users/user/Library/Developer/CoreSimulator/Devices/B0556C9E-4F68-4C77-9C53-17AC58D85278/data/Containers/Bundle/Application/97EBA641-370F-4795-8218-83D7D7F9F778/eCommercialApp.app/Frameworks/react_native_fbsdk_next.framework/Frameworks/FBSDKCoreKit.framework/FBSDKCoreKit\' (no such file), \'/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift/FBSDKCoreKit.framework/FBSDKCoreKit\' (no such file), \'/usr/lib/swift/FBSDKCoreKit.framework/FBSDKCoreKit\' (no such file), \'/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift/FBSDKCoreKit.framework/FBSDKCoreKit\' (no such file), \'/usr/lib/swift/FBSDKCoreKit.framework/FBSDKCoreKit\' (no such file), \'/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift/FBSDKCoreKit.framework/FBSDKCoreKit\' (no such file), \'/usr/lib/swift/FBSDKCoreKit.framework/FBSDKCoreKit\' (no such file), \'/Users/user/Library/Developer/CoreSimulator/Devices/B0556C9E-4F68-4C77-9C53-17AC58D85278/data/Containers/Bundle/Application/97EBA641-370F-4795-8218-83D7D7F9F778/eCommercialApp.app/Frameworks/FBSDKCoreKit.framework/FBSDKCoreKit\' (file does not start with MH_MAGIC[_64], file does not start with MH_MAGIC[_64], fat file, but missing compatible architecture (have \'arm64,x86_64\', need \'x86_64\')), \'/Users/user/Library/Developer/CoreSimulator/Devices/B0556C9E-4F68-4C77-9C53-17AC58D85278/data/Containers/Bundle/Application/97EBA641-370F-4795-8218-83D7D7F9F778/eCommercialApp.app/Frameworks/FBSDKCoreKit.framework/FBSDKCoreKit\' (file does not start with MH_MAGIC[_64], file does not start with MH_MAGIC[_64], fat file, but missing compatible architecture (have \'arm64,x86_64\', need \'x86_64\')), \'/Users/user/Library/Developer/CoreSimulator/Devices/B0556C9E-4F68-4C77-9C53-17AC58D85278/data/Containers/Bundle/Application/97EBA641-370F-4795-8218-83D7D7F9F778/eCommercialApp.app/Frameworks/FBSDKCoreKit.framework/FBSDKCoreKit\' (file does not start with MH_MAGIC[_64], file does not start with MH_MAGIC[_64], fat file, but missing compatible architecture (have \'arm64,x86_64\', need \'x86_64\')), \'/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift/FBSDKCoreKit.framework/FBSDKCoreKit\' (no such file), \'/usr/lib/swift/FBSDKCoreKit.framework/FBSDKCoreKit\' (no such file), \'/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift/FBSDKCoreKit.framework/FBSDKCoreKit\' (no such file), \'/usr/lib/swift/FBSDKCoreKit.framework/FBSDKCoreKit\' (no such file), \'/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift/FBSDKCoreKit.framework/FBSDKCoreKit\' (no such file), \'/usr/lib/swift/FBSDKCoreKit.framework/FBSDKCoreKit\' (no such file), \'/Users/user/Library/Developer/CoreSimulator/Devices/B0556C9E-4F68-4C77-9C53-17AC58D85278/data/Containers/Bundle/Application/97EBA641-370F-4795-8218-83D7D7F9F778/eCommercialApp.app/Frameworks/FBSDKCoreKit.framework/FBSDKCoreKit\' (file does not start with MH_MAGIC[_64], file does not start with MH_MAGIC[_64], fat file, but missing compatible architecture (have \'arm64,x86_64\', need \'x86_64\')), \'/Users/user/Library/Developer/CoreSimulator/Devices/B0556C9E-4F68-4C77-9C53-17AC58D85278/data/Containers/Bundle/Application/97EBA641-370F-4795-8218-83D7D7F9F778/eCommercialApp.app/Frameworks/FBSDKCoreKit.framework/FBSDKCoreKit\' (file does not start with MH_MAGIC[_64], file does not start with MH_MAGIC[_64], fat file, but missing compatible architecture (have \'arm64,x86_64\', need \'x86_64\')), \'/Users/user/Library/Developer/CoreSimulator/Devices/B0556C9E-4F68-4C77-9C53-17AC58D85278/data/Containers/Bundle/Application/97EBA641-370F-4795-8218-83D7D7F9F778/eCommercialApp.app/Frameworks/FBSDKCoreKit.framework/FBSDKCoreKit\' (file does not start with MH_MAGIC[_64], file does not start with MH_MAGIC[_64], fat file, but missing compatible architecture (have \'arm64,x86_64\', need \'x86_64\')), \'/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/FBSDKCoreKit.framework/FBSDKCoreKit\' (no such file)
Library not loaded: @rpath/FBSDKCoreKit.framework/FBSDKCoreKit
Referenced from: /Users/user/Library/Developer/CoreSimulator/Devices/B0556C9E-4F68-4C77-9C53-17AC58D85278/data/Containers/Bundle/Application/97EBA641-370F-4795-8218-83D7D7F9F778/eCommercialApp.app/Frameworks/react_native_fbsdk_next.framework/react_native_fbsdk_next
Reason: tried: \'/Users/user/Library/Developer/Xcode/DerivedData/eCommercialApp-dehghjkotvmxkidrbfdhdrffgutk/Build/Products/Debug-iphonesimulator/FBSDKCoreKit.framework/FBSDKCoreKit\' (file does not start with MH_MAGIC[_64], file does not start with MH_MAGIC[_64], fat file, but missing compatible architecture (have \'arm64,x86_64\', need \'x86_64\')), \'/Users/user/Library/Developer/Xcode/DerivedData/eCommercialApp-dehghjkotvmxkidrbfdhdrffgutk/Build/Products/Debug-iphonesimulator/PackageFrameworks/FBSDKCoreKit.framework/FBSDKCoreKit\' (no such file), \'/Users/user/Library/Developer/CoreSimulator/Devices/B0556C9E-4F68-4C77-9C53-17AC58D85278/data/Containers/Bundle/Application/97EBA641-370F-47
(lldb)
我花了两天时间来解决这个问题,但什么也没发生。所以每个人都有答案请帮助我。感谢您的回复
标签: reactjs react-native facebook-login react-native-fbsdk