question

JonathanWhite-6164 avatar image
0 Votes"
JonathanWhite-6164 asked RobCaplan edited

Updating Xamarin Facebook SDK to 8.X

Our iOS currently using the Xamarin Facebook SDK plugin here:

https://www.nuget.org/packages/Xamarin.Facebook.iOS/

However, we have a requirement to update the version of the SDK we're using to 8.2 for iOS 14 support. I added an issue to the github project asking if there was a timeline to support 8.2 but haven't gotten a reply yet. So, I cloned the repo and at least tried to update the source packages to point to the latest version of the FB SDK and did manage to get it to build new nuget package files and I was able to import these into my app. However, when I attempt to build my app I'm getting linker errors:

 MTOUCH : warning MT1302: Could not extract the native library 'FBSDKCoreKit.framework' from '.../iPhoneSimulator/Debug/device-builds/iphone 12-14.3/mtouch-cache/FBSDKCoreKit.framework.zip'. Please ensure the native library was properly embedded in the managed assembly (if the assembly was built using a binding project, the native library must be included in the project, and its Build Action must be 'ObjcBindingNativeLibrary').
     Process exited with code 1, command:
     error MT5209 : Native linking error : framework not found FBSDKLoginKit

I'm curious if anyone has run into a similar issue or if anyone has updated the Facebook SDK packages in the past?






dotnet-package-management
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

DylanZhu-MSFT avatar image
0 Votes"
DylanZhu-MSFT answered

Hi JonathanWhite,

You could try to to right-click the solution in solution explorer, then install Xamarin.Facebook.iOS in Nuget-Solution.
55166-image.png

Best Regards,
Dylan


If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


image.png (7.1 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.