gpt4 book ai didi

wifi - iOS5中需要ARC的可达性版本

转载 作者:行者123 更新时间:2023-12-03 08:42:59 24 4
gpt4 key购买 nike

在iOS5中使用Apple的可达性代码,我遇到了一系列编译错误,如下所示。关于这里发生的事情有什么想法吗?我正在使用ARC,因此我已经稍微编辑了标准代码以删除autorelease/retainNSAutoReleasePool

Undefined symbols for architecture armv7:

"_SCNetworkReachabilityCreateWithAddress", referenced from: +[Reachability reachabilityWithAddress:] in Reachability.o

"_SCNetworkReachabilityCreateWithName", referenced from: +[Reachability reachabilityWithHostName:] in Reachability.o

"_SCNetworkReachabilityUnscheduleFromRunLoop", referenced from: -[Reachability stopNotifier] in Reachability.o

"_SCNetworkReachabilityScheduleWithRunLoop", referenced from: -[Reachability startNotifier] in Reachability.o

"_SCNetworkReachabilitySetCallback", referenced from: -[Reachability startNotifier] in Reachability.o

"_SCNetworkReachabilityGetFlags", referenced from: -[Reachability connectionRequired] in Reachability.o -[Reachability currentReachabilityStatus] in Reachability.o

ld: symbol(s) not found for architecture armv7 clang: error: linker command failed with exit code 1 (use -v to see invocation)



是否有人在iOS5下具有适用于ARC的可行的可达性代码?

最佳答案

我为ARC和iOS5编写了一个干净的“可插入”版本的可达性-您可以在此处获取它:https://github.com/tonymillion/Reachability

关于wifi - iOS5中需要ARC的可达性版本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7797008/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com