podfile没有配置target带来的问题

May 06, 2014

最近在加多盟的广告sdk,由于它们也是采用cocoapods来管理依赖。而且podfile没有配置target,导致:
duplicate symbol OBJC_METACLASS$PodsDummy_Pods in:
/Users/xxx/projects/work/kate/Wallpaper/Utils/DomoAdWallSDK/libDomobAdWallCoreSDK.a(Pods-dummy.o)
/Users/xxx/projects/work/kate/DerivedData/Wallpaper/Build/Products/Debug-iphonesimulator/libPods.a(Pods-dummy.o)
duplicate symbol _OBJC_CLASS
$_PodsDummy_Pods in:
/Users/xxx/projects/work/kate/Wallpaper/Utils/DomoAdWallSDK/libDomobAdWallCoreSDK.a(Pods-dummy.o)
/Users/xxx/projects/work/kate/DerivedData/Wallpaper/Build/Products/Debug-iphonesimulator/libPods.a(Pods-dummy.o)
ld: 2 duplicate symbols for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

· EOF ·