1、当我们按部就班的导入第三方框架的时候,有时会报如下错误:
Undefined symbols for architecture x86_64:
"_SCNetworkReachabilityCreateWithAddress", referenced from:
+[EMReachability reachabilityWithAddress:] in libHyphenateSDK.a(EMReachability.o)
"_SCNetworkReachabilityCreateWithName", referenced from:
+[EMReachability reachabilityWithHostName:] in libHyphenateSDK.a(EMReachability.o)
"_SCNetworkReachabilityGetFlags", referenced from:
-[EMReachability currentReachabilityStatus] in libHyphenateSDK.a(EMReachability.o)
-[EMReachability isReachable] in libHyphenateSDK.a(EMReachability.o)
-[EMReachability isConnectionRequired] in libHyphenateSDK.a(EMReachability.o)
-[EMReachability isConnectionOnDemand] in libHyphenateSDK.a(EMReachability.o)
-[EMReachability isInterventionRequired] in libHyphenateSDK.a(EMReachability.o)
-[EMReachability isReachableViaWWAN] in libHyphenateSDK.a(EMReachability.o)
-[EMReachability isReachableViaWiFi] in libHyphenateSDK.a(EMReachability.o)
...
"_SCNetworkReachabilityScheduleWithRunLoop", referenced from:
-[EMReachability startNotifier] in libHyphenateSDK.a(EMReachability.o)
"_SCNetworkReachabilitySetCallback", referenced from:
-[EMReachability startNotifier] in libHyphenateSDK.a(EMReachability.o)
"_SCNetworkReachabilityUnscheduleFromRunLoop", referenced from:
-[EMReachability stopNotifier] in libHyphenateSDK.a(EMReachability.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
解决办法:手动添加Systemconfiguration.framework
未完待续。。。