SDKBOX Facebook plugin iOS errors - unable to build

I’ve decided to update the facebook plugin to omit the UIWebView rejection from Apple Store. Since now everything was working just fine with the plugin.
After updating using “sdkbox update” to v2.7.1.1 facebook, I’m getting 100 errors when trying to build:

Showing Recent Messages
Undefined symbol: protocol descriptor for Swift.CustomStringConvertible
Undefined symbol: method descriptor for Swift.CustomStringConvertible.description.getter : Swift.String
Undefined symbol: protocol descriptor for Foundation._ErrorCodeProtocol
....

I have tried to download the original SDK from facebook and app compiles successfully but when sdkbox::PluginFacebook::login() is called, app crashes with error:

2020-10-27 22:40:01.661626+0200 TheHackerGames-mobile[38177:779128] -[FBSDKLoginManager logInWithPermissions:fromViewController:handler:]: unrecognized selector sent to instance 0x6000038cb8a0
2020-10-27 22:40:01.686848+0200 TheHackerGames-mobile[38177:779128] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[FBSDKLoginManager logInWithPermissions:fromViewController:handler:]: unrecognized selector sent to instance 0x6000038cb8a0'

Android version works just fine after update.

1 Like

maybe you need remove “-ObjC” link flag or use fb dynamic framework.

Thank you!

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.