Innim / flutter_login_facebook

Flutter Plugin to login via Facebook.
BSD 3-Clause "New" or "Revised" License
72 stars 60 forks source link

Execution issue on iOS #82

Closed guilhermeagostinelli closed 2 years ago

guilhermeagostinelli commented 2 years ago

The following execution error is happening right after the app is started:

dyld[78079]: Library not loaded: @rpath/FBSDKLoginKit.framework/FBSDKLoginKit
  Referenced from: /Users/user224554/Library/Developer/CoreSimulator/Devices/49DC755D-4E46-407F-AC8D-B989005F1E1F/data/Containers/Bundle/Application/451E7951-9ADC-4A9D-8459-58780052F0FC/Runner.app/Frameworks/flutter_login_facebook.framework/flutter_login_facebook
  Reason: tried: '/Users/user224554/Library/Developer/Xcode/DerivedData/Runner-cifosyreiyvdekebsordjpbkqnwu/Build/Products/Debug-iphonesimulator/FBSDKLoginKit.framework/FBSDKLoginKit' (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/user224554/Library/Developer/Xcode/DerivedData/Runner-cifosyreiyvdekebsordjpbkqnwu/Build/Products/Debug-iphonesimulator/PackageFrameworks/FBSDKLoginKit.framework/FBSDKLoginKit' (no such file), '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift/FBSDKLoginKit.framework/FBSDKLoginKit' (no such file), '/usr/lib/swift/FBSDKLoginKit.framework/FBSDKLoginKit' (no such file), '/Users/user224554/Library/Developer/CoreSimulator/Devices/49DC755D-4E46-407F-AC8D-B989005F1E1F/data/Containers/Bundle/Application/451E7951-9ADC-4A9D-8459-58780052F0FC/Runner.app/Frameworks/FBSDKLoginKit.framework/FBSDKLoginKit' (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/user224554/Library/Developer/CoreSimulator/Devices/49DC755D-4E46-407F-AC8D-B989005F1E1F/data/Containers/Bundle/Application/451E7951-9ADC-4A9D-8459-58780052F0FC/Runner.app/Frameworks/flutter_login_facebook.framework/Frameworks/FBSDKLoginKit.framework/FBSDKLoginKit' (no such file), '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift/FBSDKLoginKit.framework/FBSDKLoginKit' (no such file), '/usr/lib/swift/FBSDKLoginKit.framework/FBSDKLoginKit' (no such file), '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift/FBSDKLoginKit.framework/FBSDKLoginKit' (no such file), '/usr/lib/swift/FBSDKLoginKit.framework/FBSDKLoginKit' (no such file), '/Users/user224554/Library/Developer/CoreSimulator/Devices/49DC755D-4E46-407F-AC8D-B989005F1E1F/data/Containers/Bundle/Application/451E7951-9ADC-4A9D-8459-58780052F0FC/Runner.app/Frameworks/FBSDKLoginKit.framework/FBSDKLoginKit' (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/user224554/Library/Developer/CoreSimulator/Devices/49DC755D-4E46-407F-AC8D-B989005F1E1F/data/Containers/Bundle/Application/451E7951-9ADC-4A9D-8459-58780052F0FC/Runner.app/Frameworks/FBSDKLoginKit.framework/FBSDKLoginKit' (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/user224554/Library/Developer/CoreSimulator/Devices/49DC755D-4E46-407F-AC8D-B989005F1E1F/data/Containers/Bundle/Application/451E7951-9ADC-4A9D-8459-58780052F0FC/Runner.app/Frameworks/FBSDKLoginKit.framework/FBSDKLoginKit' (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/FBSDKLoginKit.framework/FBSDKLoginKit' (no such file), '/usr/lib/swift/FBSDKLoginKit.framework/FBSDKLoginKit' (no such file), '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift/FBSDKLoginKit.framework/FBSDKLoginKit' (no such file), '/usr/lib/swift/FBSDKLoginKit.framework/FBSDKLoginKit' (no such file), '/Users/user224554/Library/Developer/CoreSimulator/Devices/49DC755D-4E46-407F-AC8D-B989005F1E1F/data/Containers/Bundle/Application/451E7951-9ADC-4A9D-8459-58780052F0FC/Runner.app/Frameworks/FBSDKLoginKit.framework/FBSDKLoginKit' (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/user224554/Library/Developer/CoreSimulator/Devices/49DC755D-4E46-407F-AC8D-B989005F1E1F/data/Containers/Bundle/Application/451E7951-9ADC-4A9D-8459-58780052F0FC/Runner.app/Frameworks/FBSDKLoginKit.framework/FBSDKLoginKit' (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/user224554/Library/Developer/CoreSimulator/Devices/49DC755D-4E46-407F-AC8D-B989005F1E1F/data/Containers/Bundle/Application/451E7951-9ADC-4A9D-8459-58780052F0FC/Runner.app/Frameworks/FBSDKLoginKit.framework/FBSDKLoginKit' (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/FBSDKLoginKit.framework/FBSDKLoginKit' (no such file)
Library not loaded: @rpath/FBSDKLoginKit.framework/FBSDKLoginKit
  Referenced from: /Users/user224554/Library/Developer/CoreSimulator/Devices/49DC755D-4E46-407F-AC8D-B989005F1E1F/data/Containers/Bundle/Application/451E7951-9ADC-4A9D-8459-58780052F0FC/Runner.app/Frameworks/flutter_login_facebook.framework/flutter_login_facebook
  Reason: tried: '/Users/user224554/Library/Developer/Xcode/DerivedData/Runner-cifosyreiyvdekebsordjpbkqnwu/Build/Products/Debug-iphonesimulator/FBSDKLoginKit.framework/FBSDKLoginKit' (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/user224554/Library/Developer/Xcode/DerivedData/Runner-cifosyreiyvdekebsordjpbkqnwu/Build/Products/Debug-iphonesimulator/PackageFrameworks/FBSDKLoginKit.framework/FBSDKLoginKit' (no such file), '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Conten
(lldb) 

Plugin version: 1.5.0+1 Facebook SDK version: 14.0.0 XCode version: 13.4.1 Device: iPhone X emulator (iOS 15.5)

greymag commented 2 years ago

Hello. I'm not sure what this problem is. Do you try to clean build folder in Xcode?

guilhermeagostinelli commented 2 years ago

Hello. I'm not sure what this problem is. Do you try to clean build folder in Xcode?

Yes, unfortunately it didn't work :/

What has worked so far was going to my app's target on XCode > Build Phases and then under "Link Binary with Libraries" replacing the Facebook SDK Swift packages with the Pod ones.

Not sure if will cause any side effects though.

greymag commented 2 years ago

And where did the Swift packages Facebook SDK come from in the first place?

guilhermeagostinelli commented 2 years ago

It came from this guide cited on the plugin's README: Facebook Login for iOS - Quickstart.

greymag commented 2 years ago

You shouldn't add Facebook SDK manually - plugin does it.

Screen%20Shot%202022-07-08%20at%2019 00 20