3

Я с ума сошел от этих ошибок. Это были часы, с которыми я сражаюсь без везения. Как я могу решить эту проблему?Повторяющиеся символы между Facebook SDK и AWS v2

У меня есть -all_load линкер флаг. Пробовал переходить на -force_load и получил «ld: файл не найден: -fobjc-arc».

Пожалуйста, помогите.

duplicate symbol _OBJC_IVAR_$_BFAppLink._sourceURL in: 
    /Users/nathangurfnkel/Desktop/iOS Projects/Pounce/iPhone/FacebookSDK.framework/FacebookSDK(BFAppLink.o) 
    /Users/nathangurfnkel/Desktop/iOS Projects/Pounce/iPhone/AWSiOSSDKv2.framework/AWSiOSSDKv2(BFAppLink.o) 
duplicate symbol _OBJC_IVAR_$_BFAppLink._targets in: 
    /Users/nathangurfnkel/Desktop/iOS Projects/Pounce/iPhone/FacebookSDK.framework/FacebookSDK(BFAppLink.o) 
    /Users/nathangurfnkel/Desktop/iOS Projects/Pounce/iPhone/AWSiOSSDKv2.framework/AWSiOSSDKv2(BFAppLink.o) 
duplicate symbol _OBJC_IVAR_$_BFAppLink._webURL in: 
    /Users/nathangurfnkel/Desktop/iOS Projects/Pounce/iPhone/FacebookSDK.framework/FacebookSDK(BFAppLink.o) 
    /Users/nathangurfnkel/Desktop/iOS Projects/Pounce/iPhone/AWSiOSSDKv2.framework/AWSiOSSDKv2(BFAppLink.o) 
duplicate symbol _OBJC_IVAR_$_BFAppLink._isBackToReferrer in: 
duplicate symbol _OBJC_IVAR_$_BFAppLinkNavigation._extras in: 
    /Users/nathangurfnkel/Desktop/iOS Projects/Pounce/iPhone/FacebookSDK.framework/FacebookSDK(BFAppLinkNavigation.o) 
    /Users/nathangurfnkel/Desktop/iOS Projects/Pounce/iPhone/AWSiOSSDKv2.framework/AWSiOSSDKv2(BFAppLinkNavigation.o) 
duplicate symbol _OBJC_IVAR_$_BFAppLinkNavigation._appLinkData in: 
duplicate symbol _OBJC_IVAR_$_BFAppLinkReturnToRefererController._attachedToNavController in: 
    /Users/nathangurfnkel/Desktop/iOS Projects/Pounce/iPhone/AWSiOSSDKv2.framework/AWSiOSSDKv2(BFAppLinkReturnToRefererController.o) 
duplicate symbol _OBJC_IVAR_$_BFAppLinkReturnToRefererController._lastShownUrl in: 
duplicate symbol _OBJC_IVAR_$_BFAppLinkReturnToRefererController._lastShownBFUrl in: 
    /Users/nathangurfnkel/Desktop/iOS Projects/Pounce/iPhone/FacebookSDK.framework/FacebookSDK(BFAppLinkReturnToRefererController.o) 
    /Users/nathangurfnkel/Desktop/iOS Projects/Pounce/iPhone/AWSiOSSDKv2.framework/AWSiOSSDKv2(BFAppLinkReturnToRefererController.o) 
duplicate symbol _OBJC_IVAR_$_BFAppLinkReturnToRefererController._delegate in: 
    /Users/nathangurfnkel/Desktop/iOS Projects/Pounce/iPhone/FacebookSDK.framework/FacebookSDK(BFAppLinkReturnToRefererController.o) 
    /Users/nathangurfnkel/Desktop/iOS Projects/Pounce/iPhone/AWSiOSSDKv2.framework/AWSiOSSDKv2(BFAppLinkReturnToRefererController.o) 
duplicate symbol _OBJC_CLASS_$_BFAppLinkReturnToRefererController in: 
    /Users/nathangurfnkel/Desktop/iOS Projects/Pounce/iPhone/FacebookSDK.framework/FacebookSDK(BFAppLinkReturnToRefererController.o) 
    /Users/nathangurfnkel/Desktop/iOS Projects/Pounce/iPhone/AWSiOSSDKv2.framework/AWSiOSSDKv2(BFAppLinkReturnToRefererController.o) 
duplicate symbol _OBJC_METACLASS_$_BFAppLinkReturnToRefererController in: 
    /Users/nathangurfnkel/Desktop/iOS Projects/Pounce/iPhone/FacebookSDK.framework/FacebookSDK(BFAppLinkReturnToRefererController.o) 
    /Users/nathangurfnkel/Desktop/iOS Projects/Pounce/iPhone/AWSiOSSDKv2.framework/AWSiOSSDKv2(BFAppLinkReturnToRefererController.o) 
duplicate symbol _OBJC_IVAR_$_BFAppLinkReturnToRefererView._includeStatusBarInSize in: 
    /Users/nathangurfnkel/Desktop/iOS Projects/Pounce/iPhone/FacebookSDK.framework/FacebookSDK(BFAppLinkReturnToRefererView.o) 
    /Users/nathangurfnkel/Desktop/iOS Projects/Pounce/iPhone/AWSiOSSDKv2.framework/AWSiOSSDKv2(BFAppLinkReturnToRefererView.o) 
duplicate symbol _OBJC_IVAR_$_BFAppLinkReturnToRefererView._labelView in: 
    /Users/nathangurfnkel/Desktop/iOS Projects/Pounce/iPhone/FacebookSDK.framework/FacebookSDK(BFAppLinkReturnToRefererView.o) 
    /Users/nathangurfnkel/Desktop/iOS Projects/Pounce/iPhone/AWSiOSSDKv2.framework/AWSiOSSDKv2(BFAppLinkReturnToRefererView.o) 
duplicate symbol _OBJC_IVAR_$_BFAppLinkReturnToRefererView._closeButton in: 
    /Users/nathangurfnkel/Desktop/iOS Projects/Pounce/iPhone/FacebookSDK.framework/FacebookSDK(.o) 
    /Users/nathangurfnkel/Desktop/iOS Projects/Pounce/iPhone/AWSiOSSDKv2.framework/AWSiOSSDKv2(BFAppLinkReturnToRefererView.o) 
duplicate symbol _OBJC_METACLASS_$_BFAppLinkReturnToRefererView in: 
    /Users/nathangurfnkel/Desktop/iOS Projects/Pounce/iPhone/FacebookSDK.framework/FacebookSDK(Bolts.o) 
    /Users/nathangurfnkel/Desktop/iOS Projects/Pounce/iPhone/AWSiOSSDKv2.framework/AWSiOSSDKv2(Bolts.o) 
duplicate symbol _OBJC_CLASS_$_Bolts in: 
    /Users/nathangurfnkel/Desktop/iOS Projects/Pounce/iPhone/Mantle.framework/Mantle(EXTRuntimeExtensions.o) 
    /Users/nathangurfnkel/Desktop/iOS Projects/Pounce/iPhone/AWSiOSSDKv2.framework/AWSiOSSDKv2(EXTRuntimeExtensions.o) 
duplicate symbol _mtl_executeCleanupBlock in: 
    /Users/nathangurfnkel/Desktop/iOS Projects/Pounce/iPhone/Mantle.framework/Mantle(EXTScope.o) 
    /Users/nathangurfnkel/Desktop/iOS Projects/Pounce/iPhone/AWSiOSSDKv2.framework/AWSiOSSDKv2(EXTScope.o) 
duplicate symbol _OBJC_IVAR_$_MTLJSONAdapter._modelClass in: 
    /Users/nathangurfnkel/Desktop/iOS Projects/Pounce/iPhone/Mantle.framework/Mantle(MTLJSONAdapter.o) 
    /Users/nathangurfnkel/Desktop/iOS Projects/Pounce/iPhone/AWSiOSSDKv2.framework/AWSiOSSDKv2(MTLJSONAdapter.o) 
duplicate symbol _OBJC_IVAR_$_MTLJSONAdapter._JSONKeyPathsByPropertyKey in: 
    /Users/nathangurfnkel/Desktop/iOS Projects/Pounce/iPhone/Mantle.framework/Mantle(MTLJSONAdapter.o) 
    /Users/nathangurfnkel/Desktop/iOS Projects/Pounce/iPhone/AWSiOSSDKv2.framework/AWSiOSSDKv2(MTLJSONAdapter.o) 
duplicate symbol _OBJC_IVAR_$_MTLJSONAdapter._model in: 
    /Users/nathangurfnkel/Desktop/iOS Projects/Pounce/iPhone/Mantle.framework/Mantle(MTLJSONAdapter.o) 
    /Users/nathangurfnkel/Desktop/iOS Projects/Pounce/iPhone/AWSiOSSDKv2.framework/AWSiOSSDKv2(MTLJSONAdapter.o) 
duplicate symbol _OBJC_CLASS_$_MTLJSONAdapter in: 
    /Users/nathangurfnkel/Desktop/iOS Projects/Pounce/iPhone/Mantle.framework/Mantle(MTLJSONAdapter.o) 
    /Users/nathangurfnkel/Desktop/iOS Projects/Pounce/iPhone/AWSiOSSDKv2.framework/AWSiOSSDKv2(MTLJSONAdapter.o) 
duplicate symbol _OBJC_METACLASS_$_MTLJSONAdapter in: 
    /Users/nathangurfnkel/Desktop/iOS Projects/Pounce/iPhone/Mantle.framework/Mantle(MTLJSONAdapter.o) 
    /Users/nathangurfnkel/Desktop/iOS Projects/Pounce/iPhone/AWSiOSSDKv2.framework/AWSiOSSDKv2(MTLJSONAdapter.o) 
duplicate symbol _OBJC_IVAR_$_MTLManagedObjectAdapter._modelClass in: 
    /Users/nathangurfnkel/Desktop/iOS Projects/Pounce/iPhone/Mantle.framework/Mantle(MTLManagedObjectAdapter.o) 
    /Users/nathangurfnkel/Desktop/iOS Projects/Pounce/iPhone/AWSiOSSDKv2.framework/AWSiOSSDKv2(MTLManagedObjectAdapter.o) 
duplicate symbol _OBJC_IVAR_$_MTLManagedObjectAdapter._managedObjectKeysByPropertyKey in: 
    /Users/nathangurfnkel/Desktop/iOS Projects/Pounce/iPhone/Mantle.framework/Mantle(MTLManagedObjectAdapter.o) 
    /Users/nathangurfnkel/Desktop/iOS Projects/Pounce/iPhone/AWSiOSSDKv2.framework/AWSiOSSDKv2(MTLManagedObjectAdapter.o) 
duplicate symbol _OBJC_IVAR_$_MTLManagedObjectAdapter._relationshipModelClassesByPropertyKey in: 
    /Users/nathangurfnkel/Desktop/iOS Projects/Pounce/iPhone/Mantle.framework/Mantle(MTLManagedObjectAdapter.o) 
    /Users/nathangurfnkel/Desktop/iOS Projects/Pounce/iPhone/AWSiOSSDKv2.framework/AWSiOSSDKv2(MTLManagedObjectAdapter.o) 
duplicate symbol _OBJC_CLASS_$_MTLManagedObjectAdapter in: 
    /Users/nathangurfnkel/Desktop/iOS Projects/Pounce/iPhone/Mantle.framework/Mantle(MTLManagedObjectAdapter.o) 
    /Users/nathangurfnkel/Desktop/iOS Projects/Pounce/iPhone/AWSiOSSDKv2.framework/AWSiOSSDKv2(MTLManagedObjectAdapter.o) 
duplicate symbol _OBJC_METACLASS_$_MTLManagedObjectAdapter in: 
    /Users/nathangurfnkel/Desktop/iOS Projects/Pounce/iPhone/Mantle.framework/Mantle(MTLModel.o) 
    /Users/nathangurfnkel/Desktop/iOS Projects/Pounce/iPhone/AWSiOSSDKv2.framework/AWSiOSSDKv2(MTLModel.o) 
duplicate symbol _OBJC_METACLASS_$_MTLModel in: 
    /Users/nathangurfnkel/Desktop/iOS Projects/Pounce/iPhone/Mantle.framework/Mantle(MTLModel.o) 
    /Users/nathangurfnkel/Desktop/iOS Projects/Pounce/iPhone/AWSiOSSDKv2.framework/AWSiOSSDKv2(MTLModel.o) 
duplicate symbol _MTLSelectorWithKeyPattern in: 
    /Users/nathangurfnkel/Desktop/iOS Projects/Pounce/iPhone/Mantle.framework/Mantle(MTLReflection.o) 
    /Users/nathangurfnkel/Desktop/iOS Projects/Pounce/iPhone/AWSiOSSDKv2.framework/AWSiOSSDKv2(MTLReflection.o) 
duplicate symbol _MTLSelectorWithCapitalizedKeyPattern in: 
    /Users/nathangurfnkel/Desktop/iOS Projects/Pounce/iPhone/Mantle.framework/Mantle(MTLReflection.o) 
    /Users/nathangurfnkel/Desktop/iOS Projects/Pounce/iPhone/AWSiOSSDKv2.framework/AWSiOSSDKv2(MTLReflection.o) 
duplicate symbol _OBJC_IVAR_$_MTLValueTransformer._forwardBlock in: 
    /Users/nathangurfnkel/Desktop/iOS Projects/Pounce/iPhone/Mantle.framework/Mantle(MTLValueTransformer.o) 
    /Users/nathangurfnkel/Desktop/iOS Projects/Pounce/iPhone/AWSiOSSDKv2.framework/AWSiOSSDKv2(MTLValueTransformer.o) 
duplicate symbol _OBJC_IVAR_$_MTLValueTransformer._reverseBlock in: 
    /Users/nathangurfnkel/Desktop/iOS Projects/Pounce/iPhone/Mantle.framework/Mantle(MTLValueTransformer.o) 
    /Users/nathangurfnkel/Desktop/iOS Projects/Pounce/iPhone/AWSiOSSDKv2.framework/AWSiOSSDKv2(MTLValueTransformer.o) 
duplicate symbol _OBJC_CLASS_$_MTLReversibleValueTransformer in: 
    /Users/nathangurfnkel/Desktop/iOS Projects/Pounce/iPhone/AWSiOSSDKv2.framework/AWSiOSSDKv2(MTLValueTransformer.o) 
duplicate symbol _OBJC_METACLASS_$_MTLValueTransformer in: 
    /Users/nathangurfnkel/Desktop/iOS Projects/Pounce/iPhone/Mantle.framework/Mantle(MTLValueTransformer.o) 
    /Users/nathangurfnkel/Desktop/iOS Projects/Pounce/iPhone/AWSiOSSDKv2.framework/AWSiOSSDKv2(MTLValueTransformer.o) 
duplicate symbol _aws_loadMTLPredefinedTransformerAdditions in: 
    /Users/nathangurfnkel/Desktop/iOS Projects/Pounce/iPhone/Mantle.framework/Mantle(NSValueTransformer+MTLPredefinedTransformerAdditions.o) 
    /Users/nathangurfnkel/Desktop/iOS Projects/Pounce/iPhone/AWSiOSSDKv2.framework/AWSiOSSDKv2(NSValueTransformer+MTLPredefinedTransformerAdditions.o) 
duplicate symbol _OBJC_METACLASS_$_PodsDummy_Pods_Mantle in: 
    /Users/nathangurfnkel/Desktop/iOS Projects/Pounce/iPhone/Mantle.framework/Mantle(Pods-Mantle-dummy.o) 
    /Users/nathangurfnkel/Desktop/iOS Projects/Pounce/iPhone/AWSiOSSDKv2.framework/AWSiOSSDKv2(Pods-Mantle-dummy.o) 
duplicate symbol _OBJC_CLASS_$_PodsDummy_Pods_Mantle in: 
    /Users/nathangurfnkel/Desktop/iOS Projects/Pounce/iPhone/Mantle.framework/Mantle(Pods-Mantle-dummy.o) 
    /Users/nathangurfnkel/Desktop/iOS Projects/Pounce/iPhone/AWSiOSSDKv2.framework/AWSiOSSDKv2(Pods-Mantle-dummy.o) 
ld: 131 duplicate symbols for architecture arm64 
clang: error: linker command failed with exit code 1 (use -v to see invocation) 

ответ

1

Прежде всего, вы должны убедиться, что используете последние версии Facebook и AWS SDK. У обоих из них есть Bolts.framework. Вы должны включить его в SDK для Facebook и не импортировать его в SDK AWS. Обратите внимание, что когда вы удаляете фреймворк, вам следует дважды проверить, что Framework Search Paths не указывает на фреймворк, который вы только что удалили.