ios – LinkedIn SDK重复符号

我下载了最新的LinkedIn SDK并添加到我的项目中,但构建失败

duplicate symbol _OBJC_METACLASS_$_PodsDummy_Pods in:

/linkedin-sdk.framework/linkedin-sdk(Pods-dummy.o)

/Build/Products/Debug-iphonesimulator/libPods.a(Pods-dummy.o) duplicate symbol _OBJC_CLASS_$_PodsDummy_Pods in:

/linkedin-sdk.framework/linkedin-sdk(Pods-dummy.o)

/Build/Products/Debug-iphonesimulator/libPods.a(Pods-dummy.o) ld: 2 duplicate symbols for architecture x86_64 clang: error: linker

command failed with exit code 1 (use -v to see invocation)

有谁知道如何修理它?

我有同样的问题,并找到一个解决方法,直到LinkedIn SDK“修复”.

只需更新PodsXcode项目中的Pods-dummy.m文档:

#import <Foundation/Foundation.h>
@interface PodsDummy_Pods : NSObject
@end
@implementation PodsDummy_Pods
@end

#import <Foundation/Foundation.h>
@interface PodsDummy_Podsxx : NSObject
@end
@implementation PodsDummy_Podsxx
@end

然后它将链接.

注意:每次通过命令行更新Pod时都需要对其进行修补,例如: “pod安装”或更新等

翻译自:https://stackoverflow.com/questions/31258300/linkedin-sdk-duplicate-symbol