Facebook-ios-sdk: Duplicate symbol FBSDKVideoUploader in FBSDKShareKit and FBSDKGamingServicesKit

Created on 2 Oct 2020  Â·  4Comments  Â·  Source: facebook/facebook-ios-sdk

Checklist

Environment

Describe your dev environment here, giving as many details as possible. If you have them, make sure to include:

Goals

What do you want to achieve?

For mobile cross-platform Unity game I want to update Facebook SDK and make it successfully build on our buildbot.

Expected Results

What do you expect to happen?

After updating to the latest version of the Facebook SDK I expect builds to succeed.

Actual Results

What actually happened? Can you provide a stack trace?

Buildbot reports a linking failure on the step “Xcode archive” with the following messages:

duplicate symbol '_OBJC_IVAR_$_FBSDKVideoUploader._parameters' in:
    /Users/buildserver/.../FBSDKShareKit.framework/FBSDKShareKit(FBSDKVideoUploader.o)
    /Users/buildserver/.../FBSDKGamingServicesKit.framework/FBSDKGamingServicesKit(FBSDKVideoUploader.o)
...
duplicate symbol '_OBJC_IVAR_$_FBSDKVideoUploader._uploadSessionID' in:
    /Users/buildserver/.../FBSDKShareKit.framework/FBSDKShareKit(FBSDKVideoUploader.o)
    /Users/buildserver/.../FBSDKGamingServicesKit.framework/FBSDKGamingServicesKit(FBSDKVideoUploader.o)
ld: 12 duplicate symbols for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

** ARCHIVE FAILED **

Steps to Reproduce

What are the steps necessary to reproduce this issue?

I don't know how to reproduce it in a clean Xcode project. But in case of Unity it's probably sufficient just to drop these folders from Facebook SDK v8.0.0 to the project:

  • FBSDKCoreKit.framework
  • FBSDKGamingServicesKit.framework
  • FBSDKLoginKit.framework
  • FBSDKShareKit.framework

Code Samples & Details

Please provide a code sample, as well as any additional details, to help us track down the issue.

It's probably related to this pull request: Moving video uploader into GamingServicesKit #1494
FBSDKVideoUploader was moved from FBSDKShareKit to FBSDKGamingServicesKit, but the older version of FBSDKShareKit was released, or something like that.

Most helpful comment

Same issue with Unity 2018.4.23f1 and Xcode 12. I had to strip symbols from FBSDKShareKit

All 4 comments

We have the same issue with Unity2019 and xCode 12.0.0

Are there any estimates on when the fixed release will be available?

@jingping2015 @joesus @kalendae @robtimp

Same issue with Unity 2018.4.23f1 and Xcode 12. I had to strip symbols from FBSDKShareKit

This should be fixed in next release - commit - 0cd91819be1a2c93aa04dc569a5623caf4636975

Was this page helpful?
0 / 5 - 0 ratings