由于libWeANDSFLibrary.a(ASIReachability.o)的重复符号链接器错误
我正在使用ASI ( ASIHTTPRequest
, ASIDownloadCache
, Reachability
等)请求。 现在在我的项目中,我正在使用reachability.h
和.m
文件。我添加了一个第三方库,在那个库中我知道他们也在使用ASI库。 但据我所知,他们使用ASIReachability
类而不是Reachability
。 所以我也加了.h
文件。
仍然我收到链接器错误,说:
duplicate symbol _kInternetConnection in: /Users/goutham.v/Library/Developer/Xcode/DerivedData/My_TWCable-fyaebjpvvaprmgdgtirhzshodpky/Build/Intermediates/My TWCable.build/Debug-iphonesimulator/My TWCable.build/Objects-normal/i386/Reachability.o /Users/goutham.v/Desktop/SVN/TWC_BC/12Mar2014_TWCBC/weandsf/iphonesimulator/libWeANDSFLibrary.a(ASIReachability.o) duplicate symbol _kLocalWiFiConnection in: /Users/goutham.v/Library/Developer/Xcode/DerivedData/My_TWCable-fyaebjpvvaprmgdgtirhzshodpky/Build/Intermediates/My TWCable.build/Debug-iphonesimulator/My TWCable.build/Objects-normal/i386/Reachability.o /Users/goutham.v/Desktop/SVN/TWC_BC/12Mar2014_TWCBC/weandsf/iphonesimulator/libWeANDSFLibrary.a(ASIReachability.o) duplicate symbol _kReachabilityChangedNotification in: /Users/goutham.v/Library/Developer/Xcode/DerivedData/My_TWCable-fyaebjpvvaprmgdgtirhzshodpky/Build/Intermediates/My TWCable.build/Debug-iphonesimulator/My TWCable.build/Objects-normal/i386/Reachability.o /Users/goutham.v/Desktop/SVN/TWC_BC/12Mar2014_TWCBC/weandsf/iphonesimulator/libWeANDSFLibrary.a(ASIReachability.o) duplicate symbol _kConnectionDown in: /Users/goutham.v/Library/Developer/Xcode/DerivedData/My_TWCable-fyaebjpvvaprmgdgtirhzshodpky/Build/Intermediates/My TWCable.build/Debug-iphonesimulator/My TWCable.build/Objects-normal/i386/Reachability.o /Users/goutham.v/Desktop/SVN/TWC_BC/12Mar2014_TWCBC/weandsf/iphonesimulator/libWeANDSFLibrary.a(ASIReachability.o) ld: 4 duplicate symbols for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation)
请帮帮我。 感谢您。
您收到重复的符号错误。 所以你必须search这个string_kConnectionDown
, _kReachabilityChangedNotification
, _kLocalWiFiConnection
, _kInternetConnection
,并从文件中删除重复。 我认为,您可以两次导入Reachability
类,一个来自libWeANDSFLibrary.a
,另一个来自ASI
。 检查这个。 希望,帮助你。
你可能会在你的项目中包含这个文件两次,所以你应该从项目中删除任何一个,因为这两个都被编译。 select项目 – >进入生成阶段 – >input文件名显示为错误,并检查是否有许多文件在那里有相同的名称,然后select然后从列表中删除任何一个