Updating Xamarin Facebook SDK to 8.X

Jonathan White 1 Reputation point
2021-01-08T20:00:18.693+00:00

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?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,375 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Dylan Zhu-MSFT 6,406 Reputation points
    2021-01-11T06:53:35.453+00:00

    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.**

    0 comments No comments