我有一个应用程序,它有一个社会登录,我已经实现了。但是,当我在项目中添加Rechability类时,它会引发错误。
ld: warning: ignoring file /Volumes/Backup/Running App/MAHLATI/Mahalati/Mahalati/SystemConfiguration.framework/SystemConfiguration.tbd, missing required architecture x86_64 in file /Volumes/Backup/Running App/MAHLATI/Mahalati/Mahalati/SystemConfiguration.framework/SystemConfiguration.tbd
ld: warning: ignoring file /Volumes/Backup/Running App/MAHLATI/Mahalati/Mahalati/SafariServices.framework/SafariServices.tbd, missing required architecture x86_64 in file /Volumes/Backup/Running App/MAHLATI/Mahalati/Mahalati/SafariServices.framework/SafariServices.tbd
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_SSReadingList", referenced from:
objc-class-ref in GoogleSignIn(please_link_SafariServices.framework_.o)
"_SCNetworkReachabilityCreateWithAddress", referenced from:
+[Reachability reachabilityWithAddress:] in Reachability.o
"_SCNetworkReachabilityCreateWithName", referenced from:
+[Reachability reachabilityWithHostName:] in Reachability.o
-[GSDK_GTMOAuth2SignIn startReachabilityCheck] in GoogleAuthUtilities(GTMOAuth2SignIn.o)
"_SCNetworkReachabilityGetFlags", referenced from:
-[Reachability connectionRequired] in Reachability.o
-[Reachability currentReachabilityStatus] in Reachability.o
"_SCNetworkReachabilityScheduleWithRunLoop", referenced from:
-[Reachability startNotifier] in Reachability.o
-[GSDK_GTMOAuth2SignIn startReachabilityCheck] in GoogleAuthUtilities(GTMOAuth2SignIn.o)
"_SCNetworkReachabilitySetCallback", referenced from:
-[Reachability startNotifier] in Reachability.o
-[GSDK_GTMOAuth2SignIn startReachabilityCheck] in GoogleAuthUtilities(GTMOAuth2SignIn.o)
-[GSDK_GTMOAuth2SignIn stopReachabilityCheck] in GoogleAuthUtilities(GTMOAuth2SignIn.o)
"_SCNetworkReachabilityUnscheduleFromRunLoop", referenced from:
-[Reachability stopNotifier] in Reachability.o
-[GSDK_GTMOAuth2SignIn stopReachabilityCheck] in GoogleAuthUtilities(GTMOAuth2SignIn.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和SafariServices.frameworks
我还删除了派生数据,但是错误没有解决,我无法识别问题。
明天一切都很顺利。但从今天起就不会了。
请帮帮我。
发布于 2016-07-24 19:16:33
加上safariservices.framework,这解决了我的问题
发布于 2017-04-16 04:25:06
您忽略了从系统中链接SystemConfiguration.framework和Security.framework。
https://stackoverflow.com/questions/38498391
复制相似问题