gpt4 book ai didi

ios - 静态库中添加可达性

转载 作者:行者123 更新时间:2023-11-29 13:19:23 25 4
gpt4 key购买 nike

我有我的静态库在这个项目中,我添加了一个 Reachability.h .m 文件。所以,我有一些链接器错误:我还添加了 CFNetwork 和 System.Configuration 框架

Undefined symbols for architecture i386:
"_SCNetworkReachabilityCreateWithAddress", referenced from:
+[Reachability reachabilityWithAddress:] in libAdvertisingPromotions.a(Reachability.o)
"_SCNetworkReachabilityCreateWithName", referenced from:
+[Reachability reachabilityWithHostName:] in libAdvertisingPromotions.a(Reachability.o)
"_SCNetworkReachabilityGetFlags", referenced from:
-[Reachability connectionRequired] in libAdvertisingPromotions.a(Reachability.o)
-[Reachability currentReachabilityStatus] in libAdvertisingPromotions.a(Reachability.o)
"_SCNetworkReachabilityScheduleWithRunLoop", referenced from:
-[Reachability startNotifier] in libAdvertisingPromotions.a(Reachability.o)
"_SCNetworkReachabilitySetCallback", referenced from:
-[Reachability startNotifier] in libAdvertisingPromotions.a(Reachability.o)
"_SCNetworkReachabilityUnscheduleFromRunLoop", referenced from:
-[Reachability stopNotifier] in libAdvertisingPromotions.a(Reachability.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

最佳答案

我已经解决了这个...我在使用我的静态库的测试应用程序项目中添加了 systemconfiguration.framework

关于ios - 静态库中添加可达性,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14748563/

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