我有我的静态库 在这个项目中,我添加了一个 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)