duplicate symbol _kReachabilityChangedNotification in:
/Users/li/Library/Developer/Xcode/DerivedData/xxtnm_iOS_con-eissadycdikdblafyndzticiamhd/Build/Intermediates/xxtnm_iOS_con.build/Debug-iphoneos/xxtnm_iOS_con.build/Objects-normal/arm64/Reachability.o
/Users/li/Desktop/xxtnm_iOS_con/xxtnm_iOS_con/Section/小视频/腾讯云/QCloudDownloadSDK/真机/QCloudDownloadSDK/libTXYDownloader.a(TXYReachability.o)
duplicate symbol _ASIWWANBandwidthThrottleAmount in:
/Users/li/Library/Developer/Xcode/DerivedData/xxtnm_iOS_con-eissadycdikdblafyndzticiamhd/Build/Intermediates/xxtnm_iOS_con.build/Debug-iphoneos/xxtnm_iOS_con.build/Objects-normal/arm64/ASIHTTPRequest.o
/Users/li/Desktop/xxtnm_iOS_con/xxtnm_iOS_con/Section/小视频/腾讯云/QCloudDownloadSDK/真机/QCloudDownloadSDK/libTXYDownloader.a(TXYASIHTTPRequest.o)
duplicate symbol _NetworkRequestErrorDomain in:
/Users/li/Library/Developer/Xcode/DerivedData/xxtnm_iOS_con-eissadycdikdblafyndzticiamhd/Build/Intermediates/xxtnm_iOS_con.build/Debug-iphoneos/xxtnm_iOS_con.build/Objects-normal/arm64/ASIHTTPRequest.o
/Users/li/Desktop/xxtnm_iOS_con/xxtnm_iOS_con/Section/小视频/腾讯云/QCloudDownloadSDK/真机/QCloudDownloadSDK/libTXYDownloader.a(TXYASIHTTPRequest.o)
duplicate symbol _RedirectionLimit in:
真机上运行失败。
首先看上方的报错信息,这个是由于我们导入腾讯云以后出现的错误,上方的名字和现在工程的的名字冲突了。
在使用Reachability加入了h/m文件到工程中,编译出现如下错误,解决方法如下:
[plain] view plain copy print ? </pre><p></p><pre name="code" class="plain"> You can remove any of the two Reachability.m files from the compilation. Go to Project Settings -> Build Phases -> Compile Sources -> Select Reachability.m -> Delete it. This won't delete the file from the system, only from the compilation. The header will be used and the implementation won't be duplicated. You can also rename one of the classes to avoid naming conflicts. 解决1: Go to Project Settings -> Build Phases -> Compile Sources -> Select Reachability.m -> Delete it.通过上面这个方法,结果在真机上运行还是失败。
解决2:
You can also rename one of the classes to avoid naming conflicts. 通过上面的方法,就是我们找到上方的变量名,然后改个名字。例如kReachabilityChangedNotification,从工程中找到所有的这个变量名,然后改名字为kReachabilityChangedNotificationOld,如此类推,下方的也是重复此操作。最终程序可以正常运行了。