Facebook SDK和AWS v2之间的重复符号

时间:2014-12-11 13:06:34

标签: ios amazon-web-services linker-errors facebook-sdk-4.0 linker-flags

我对这些错误感到疯狂。已经好几个小时我都没有运气。我怎么能解决这个问题?

我有-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 个答案:

答案 0 :(得分:1)

首先,您应该确保使用最新版本的Facebook和AWS SDK。他们都有Bolts.framework。您应该在Facebook SDK中包含一个,并且不要在AWS SDK中导入该SDK。请注意,当您删除框架时,应仔细检查Framework Search Paths是否指向您刚删除的框架。