Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

duplicate symbols for architecture x86_64 (Implementing FBSDKCoreKilt) Swift

This is the most horrifying error that I've dealt with so far. To be clear:

  1. This is in swift so it's not a ".h" ".m" issue
  2. My compile sources is so tiny, there are no duplicates there.
  3. I have redownloaded the SDK several times but it never works.
  4. The project only has two frameworks in it: FBSDKCoreKit and LoginKit

Any ideas? What is duplicated?

duplicate symbol _llvm.cmdline in:
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKLoginKit.framework/FBSDKLoginKit(FBSDKLoginButton.o)
duplicate symbol _llvm.embedded.module in:
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKLoginKit.framework/FBSDKLoginKit(FBSDKLoginButton.o)
duplicate symbol _llvm.cmdline in:
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKLoginKit.framework/FBSDKLoginKit(FBSDKLoginCompletion.o)
duplicate symbol _llvm.embedded.module in:
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKLoginKit.framework/FBSDKLoginKit(FBSDKLoginCompletion.o)
duplicate symbol _llvm.cmdline in:
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKLoginKit.framework/FBSDKLoginKit(FBSDKLoginConstants.o)
duplicate symbol _llvm.embedded.module in:
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKLoginKit.framework/FBSDKLoginKit(FBSDKLoginConstants.o)
duplicate symbol _llvm.cmdline in:
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKLoginKit.framework/FBSDKLoginKit(FBSDKLoginError.o)
duplicate symbol _llvm.embedded.module in:
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKLoginKit.framework/FBSDKLoginKit(FBSDKLoginError.o)
duplicate symbol _llvm.cmdline in:
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKLoginKit.framework/FBSDKLoginKit(FBSDKLoginManager.o)
duplicate symbol _llvm.embedded.module in:
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKLoginKit.framework/FBSDKLoginKit(FBSDKLoginManager.o)
duplicate symbol _llvm.cmdline in:
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKLoginKit.framework/FBSDKLoginKit(FBSDKLoginManagerLoginResult.o)
duplicate symbol _llvm.embedded.module in:
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKLoginKit.framework/FBSDKLoginKit(FBSDKLoginManagerLoginResult.o)
duplicate symbol _llvm.cmdline in:
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKLoginKit.framework/FBSDKLoginKit(FBSDKLoginTooltipView.o)
duplicate symbol _llvm.embedded.module in:
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKLoginKit.framework/FBSDKLoginKit(FBSDKLoginTooltipView.o)
duplicate symbol _llvm.cmdline in:
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKLoginKit.framework/FBSDKLoginKit(FBSDKLoginUtility.o)
duplicate symbol _llvm.embedded.module in:
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKLoginKit.framework/FBSDKLoginKit(FBSDKLoginUtility.o)
duplicate symbol _llvm.cmdline in:
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKLoginKit.framework/FBSDKLoginKit(FBSDKTooltipView.o)
duplicate symbol _llvm.embedded.module in:
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKLoginKit.framework/FBSDKLoginKit(FBSDKTooltipView.o)
duplicate symbol _llvm.cmdline in:
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKLoginKit.framework/FBSDKLoginKit(_FBSDKLoginRecoveryAttempter.o)
duplicate symbol _llvm.embedded.module in:
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKLoginKit.framework/FBSDKLoginKit(_FBSDKLoginRecoveryAttempter.o)
duplicate symbol _llvm.cmdline in:
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKLoginKit.framework/FBSDKLoginKit(FBSDKLoginManagerLogger.o)
duplicate symbol _llvm.embedded.module in:
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKLoginKit.framework/FBSDKLoginKit(FBSDKLoginManagerLogger.o)
duplicate symbol _llvm.cmdline in:
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKSystemAccountStoreAdapter.o)
duplicate symbol _llvm.embedded.module in:
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKSystemAccountStoreAdapter.o)
duplicate symbol _llvm.cmdline in:
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKGraphRequestPiggybackManager.o)
duplicate symbol _llvm.embedded.module in:
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKGraphRequestPiggybackManager.o)
duplicate symbol _llvm.cmdline in:
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAppEventsStateManager.o)
duplicate symbol _llvm.embedded.module in:
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAppEventsStateManager.o)
duplicate symbol _llvm.cmdline in:
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKServerConfigurationManager.o)
duplicate symbol _llvm.embedded.module in:
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKServerConfigurationManager.o)
duplicate symbol _llvm.cmdline in:
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKGraphRequest.o)
duplicate symbol _llvm.embedded.module in:
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKGraphRequest.o)
duplicate symbol _llvm.cmdline in:
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKContainerViewController.o)
duplicate symbol _llvm.embedded.module in:
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKContainerViewController.o)
duplicate symbol _llvm.cmdline in:
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessTokenCache.o)
duplicate symbol _llvm.embedded.module in:
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessTokenCache.o)
duplicate symbol _llvm.cmdline in:
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKCrypto.o)
duplicate symbol _llvm.embedded.module in:
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKCrypto.o)
duplicate symbol _llvm.cmdline in:
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAppEventsState.o)
duplicate symbol _llvm.embedded.module in:
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAppEventsState.o)
duplicate symbol _llvm.cmdline in:
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKCloseIcon.o)
duplicate symbol _llvm.embedded.module in:
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKCloseIcon.o)
duplicate symbol _llvm.cmdline in:
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKBase64.o)
duplicate symbol _llvm.embedded.module in:
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKBase64.o)
duplicate symbol _llvm.cmdline in:
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKBridgeAPIProtocolWebV2.o)
duplicate symbol _llvm.embedded.module in:
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKBridgeAPIProtocolWebV2.o)
duplicate symbol _llvm.cmdline in:
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKGraphRequestBody.o)
duplicate symbol _llvm.embedded.module in:
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKGraphRequestBody.o)
duplicate symbol _llvm.cmdline in:
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKUtility.o)
duplicate symbol _llvm.embedded.module in:
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKUtility.o)
duplicate symbol _llvm.cmdline in:
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKBoltsMeasurementEventListener.o)
duplicate symbol _llvm.embedded.module in:
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKBoltsMeasurementEventListener.o)
duplicate symbol _llvm.cmdline in:
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKLogger.o)
duplicate symbol _llvm.embedded.module in:
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKLogger.o)
duplicate symbol _llvm.cmdline in:
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
    /Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKApplicationDelegate.o)
duplicate symbol _llvm.embedded.module in:

ld: 142 duplicate symbols for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
like image 537
Wesley Cho Avatar asked Sep 11 '15 17:09

Wesley Cho


1 Answers

Its an issue with the latest Facebook SDK (Sept 10th 2015). Download the release before it.

See this answer https://stackoverflow.com/a/32519847/1052084 which worked for me.

like image 172
dancampers Avatar answered Sep 28 '22 01:09

dancampers