Повторяющиеся символы для архитектуры x86_64 (Реализация FBSDKCoreKilt) Swift

Это самая ужасная ошибка, с которой я столкнулся до сих пор. Чтобы быть ясным:

  • Это быстро, поэтому не проблема ".h" ".m"
  • Мои источники компиляции настолько малы, что дубликатов там нет.
  • Я несколько раз перезагрузил SDK, но он никогда не работает.
  • Проект имеет только две структуры: FBSDKCoreKit и LoginKit

Любые идеи? Что дублируется?

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)

Ответ 1

Его проблема с последним SDK для Facebook (10 сентября 2015 года). Загрузите релиз до него.

Смотрите этот ответ fooobar.com/questions/105036/..., который работал у меня.

Ответ 3

Это также может быть вызвано любыми включенными статическими библиотеками или подпроектами, которые включены в ваш проект, с другой целевой версией, т.е. у вас есть проект externalSourcesLibrary, и его цель сборки установлена ​​на минимальную версию 6.0, в то время как ваш основной проект установлен на нечто большее, например 8.4 или наоборот.