我在我的 iPhone 应用程序中使用 ShareKit 和 BCFads sdk。构建应用程序时,出现重复符号错误。
ld: duplicate symbol _OBJC_IVAR_$_Reachability.reachabilityRef in /BCFAds/BCFAds.a(Reachability.o) and /Debug-iphonesimulator/libShareKit.a(Reachability.o) for architecture i386
collect2: ld returned 1 exit status
Command /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/llvm-g++-4.2 failed with exit code 1
这个问题来自ReachabilityRef。它在 sharekit 的 Reachability.m 中定义。
@interface Reachability: NSObject
{
BOOL localWiFiRef;
SCNetworkReachabilityRef reachabilityRef;
}
任何的想法?