I an have app which has a social login which I've implemented. But when I add the Rechability class in my project it throws errors
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)
i am added SystemConfiguration.framework and SafariServices.frameworks
I have also deleted Derived data but the error is not resolved and I cannot identify the issue.
Tomorrow all things working very well. But from today it will not.
please help me out.
Add safariservices.framework , this fixed my issue
You're neglecting to link SystemConfiguration.framework and Security.framework
from the system.
Related
When trying to build my app for archiving and updating to cordova 3.4.1 I get this linking error message. I solved something similar before but I am afraid to touch the build settings because x86_64 does not seem to be a supported architecture.
What can I do?
ld: warning: ignoring file /Users/bogdan/Library/Developer/Xcode/DerivedData/Eazybreak-ctqyotqyclrvjoghewxpdeoemnkd/Build/Products/Debug-iphonesimulator/libCordova.a, file was built for archive which is not the architecture being linked (x86_64): /Users/bogdan/Library/Developer/Xcode/DerivedData/Eazybreak-ctqyotqyclrvjoghewxpdeoemnkd/Build/Products/Debug-iphonesimulator/libCordova.a
Undefined symbols for architecture x86_64:
"_CDVLocalNotification", referenced from:
-[AppDelegate application:didReceiveLocalNotification:] in AppDelegate.o
"_CDVPageDidLoadNotification", referenced from:
This is the error message I get (it's much longer of course).
Any help is appreciated.
Bogdan
Added full error log:
ld: warning: ignoring file /Users/bogdan/Library/Developer/Xcode/DerivedData/Eazybreak-ctqyotqyclrvjoghewxpdeoemnkd/Build/Products/Debug-iphonesimulator/libCordova.a, file was built for archive which is not the architecture being linked (x86_64): /Users/bogdan/Library/Developer/Xcode/DerivedData/Eazybreak-ctqyotqyclrvjoghewxpdeoemnkd/Build/Products/Debug-iphonesimulator/libCordova.a
Undefined symbols for architecture x86_64:
"_CDVLocalNotification", referenced from:
-[AppDelegate application:didReceiveLocalNotification:] in AppDelegate.o
"_CDVPageDidLoadNotification", referenced from:
-[CDVSplashScreen pluginInitialize] in CDVSplashScreen.o
"_CDVPluginHandleOpenURLNotification", referenced from:
-[AppDelegate application:handleOpenURL:] in AppDelegate.o
"_OBJC_CLASS_$_CDVCommandDelegateImpl", referenced from:
_OBJC_CLASS_$_MainCommandDelegate in MainViewController.o
"_OBJC_CLASS_$_CDVCommandQueue", referenced from:
_OBJC_CLASS_$_MainCommandQueue in MainViewController.o
"_OBJC_CLASS_$_CDVPlugin", referenced from:
_OBJC_CLASS_$_CDVDevice in CDVDevice.o
_OBJC_CLASS_$_CDVConnection in CDVConnection.o
_OBJC_CLASS_$_CDVNotification in CDVNotification.o
_OBJC_CLASS_$_CDVSplashScreen in CDVSplashScreen.o
"_OBJC_CLASS_$_CDVPluginResult", referenced from:
objc-class-ref in CDVDevice.o
objc-class-ref in CDVConnection.o
objc-class-ref in CDVNotification.o
"_OBJC_CLASS_$_CDVViewController", referenced from:
_OBJC_CLASS_$_MainViewController in MainViewController.o
objc-class-ref in CDVDevice.o
"_OBJC_METACLASS_$_CDVCommandDelegateImpl", referenced from:
_OBJC_METACLASS_$_MainCommandDelegate in MainViewController.o
"_OBJC_METACLASS_$_CDVCommandQueue", referenced from:
_OBJC_METACLASS_$_MainCommandQueue in MainViewController.o
"_OBJC_METACLASS_$_CDVPlugin", referenced from:
_OBJC_METACLASS_$_CDVDevice in CDVDevice.o
_OBJC_METACLASS_$_CDVConnection in CDVConnection.o
_OBJC_METACLASS_$_CDVNotification in CDVNotification.o
_OBJC_METACLASS_$_CDVSplashScreen in CDVSplashScreen.o
"_OBJC_METACLASS_$_CDVViewController", referenced from:
_OBJC_METACLASS_$_MainViewController in MainViewController.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Try removing x86_64 from Build Settings > Valid Architectures. I had a similar problem with arm64 architecture.
I'm trying to test Admob Banner on iPad Mini Retina. Now I'm getting this error:
Undefined symbols for architecture arm64:
"_SCNetworkReachabilityCreateWithAddress", referenced from:
l002 in libGoogleAdMobAds.a(GADGestureUtil.o) "_AudioServicesPlaySystemSound", referenced from:
-[GADDefaultGMSGHandler didReceiveVibrateNotification:] in libGoogleAdMobAds.a(GADDefaultGMSGHandler.o)
"_AudioSessionInitialize", referenced from:
-[GADDevice audioRouteUsingAudioToolkit] in libGoogleAdMobAds.a(GADDevice.o) "_OBJC_CLASS_$_AVAudioSession",
referenced from:
objc-class-ref in libGoogleAdMobAds.a(GADDevice.o) "_AVAudioSessionPortHeadphones", referenced from:
-[GADDevice audioRouteUsingAVAudioSession] in libGoogleAdMobAds.a(GADDevice.o) "_AudioSessionGetProperty",
referenced from:
-[GADDevice audioRouteUsingAudioToolkit] in libGoogleAdMobAds.a(GADDevice.o)
"_OBJC_CLASS_$_MFMailComposeViewController", referenced from:
objc-class-ref in libGoogleAdMobAds.a(GADOpener.o) "_SCNetworkReachabilityGetFlags", referenced from:
l002 in libGoogleAdMobAds.a(GADGestureUtil.o) "_SCNetworkReachabilitySetCallback", referenced from:
-[GADNetworkChecker startNetworkChecking] in libGoogleAdMobAds.a(GADNetworkChecker.o)
"_OBJC_CLASS_$_MFMessageComposeViewController", referenced from:
objc-class-ref in libGoogleAdMobAds.a(GADOpener.o) "_AVAudioSessionPortBuiltInSpeaker", referenced from:
-[GADDevice audioRouteUsingAVAudioSession] in libGoogleAdMobAds.a(GADDevice.o)
"_OBJC_CLASS_$_SKStoreProductViewController", referenced from:
objc-class-ref in libGoogleAdMobAds.a(GADOpener.o) "_SCNetworkReachabilityScheduleWithRunLoop", referenced from:
-[GADNetworkChecker startNetworkChecking] in libGoogleAdMobAds.a(GADNetworkChecker.o)
"_OBJC_CLASS_$_CTTelephonyNetworkInfo", referenced from:
objc-class-ref in libGoogleAdMobAds.a(GADDevice.o) "_SCNetworkReachabilityUnscheduleFromRunLoop", referenced from:
-[GADNetworkChecker stopNetworkChecking] in libGoogleAdMobAds.a(GADNetworkChecker.o)
"_SCNetworkReachabilityCreateWithName", referenced from:
-[GADNetworkChecker startNetworkChecking] in libGoogleAdMobAds.a(GADNetworkChecker.o)
"_SKStoreProductParameterITunesItemIdentifier", referenced from:
-[GADOpener openInAppStore:fallbackURLString:] in libGoogleAdMobAds.a(GADOpener.o) ld: symbol(s) not found for
architecture arm64 clang: error: linker command failed with exit code
1 (use -v to see invocation)
I found a solution which removes some errors. It is to add some Frameworks. List of them:
AudioToolbox.Framework
MessageUI.Framework
SystemConfiguration.Framework
CoreGraphics.Framework
CoreData.Framework
AdSupport.Framework
MediaPlayer.framework
But anyway I have got this error:
Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_AVAudioSession", referenced from:
objc-class-ref in libGoogleAdMobAds.a(GADDevice.o) "_AVAudioSessionPortBuiltInSpeaker", referenced from:
-[GADDevice audioRouteUsingAVAudioSession] in libGoogleAdMobAds.a(GADDevice.o)
"_OBJC_CLASS_$_CTTelephonyNetworkInfo", referenced from:
objc-class-ref in libGoogleAdMobAds.a(GADDevice.o) "_AVAudioSessionPortHeadphones", referenced from:
-[GADDevice audioRouteUsingAVAudioSession] in libGoogleAdMobAds.a(GADDevice.o)
"_OBJC_CLASS_$_SKStoreProductViewController", referenced from:
objc-class-ref in libGoogleAdMobAds.a(GADOpener.o) "_SKStoreProductParameterITunesItemIdentifier", referenced from:
-[GADOpener openInAppStore:fallbackURLString:] in libGoogleAdMobAds.a(GADOpener.o) ld: symbol(s) not found for
architecture arm64 clang: error: linker command failed with exit code
1 (use -v to see invocation)
How to solve this issue?
Just add following frameworks BuildSettings -> Build Phase -> Link Binary with libraries
StoreKit.framework
CoreTelephony.framework
AVFoundation.framework
using the API in Xcode i must compile the project avoiding the 64 bit arc, but while I'm trying to use the DeezerAudioPlayer I get a incompatibility problem with the armv7 arc.
How I should compile the project in order to avoid all architecture problems?
REPORT:
Undefined symbols for architecture armv7:
"_SCNetworkReachabilityGetFlags", referenced from:
-[DeezerReachability connectionRequired] in libDeezer.a(DeezerReachability.o)
-[DeezerReachability currentReachabilityStatus] in libDeezer.a(DeezerReachability.o)
"_SCNetworkReachabilityCreateWithAddress", referenced from:
+[DeezerReachability reachabilityWithAddress:] in libDeezer.a(DeezerReachability.o)
"_SCNetworkReachabilityCreateWithName", referenced from:
+[DeezerReachability reachabilityWithHostName:] in libDeezer.a(DeezerReachability.o)
"_SCNetworkReachabilityScheduleWithRunLoop", referenced from:
-[DeezerReachability startNotifier] in libDeezer.a(DeezerReachability.o)
"_SCNetworkReachabilityUnscheduleFromRunLoop", referenced from:
-[DeezerReachability stopNotifier] in libDeezer.a(DeezerReachability.o)
"_SCNetworkReachabilitySetCallback", referenced from:
-[DeezerReachability startNotifier] in libDeezer.a(DeezerReachability.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
____SOLVED!
the problem wasn't in the deezer api but in a missing link with a library. I've had to add the system framework in 'link with libraries' in the 'project build phase'.
Indeed, the SystemConfiguration framework is needed.
Can you mark your question as "Resolved".
Thanks.
I'm getting these errors when trying to implement RevMob banner and full screen ads into my app. What can I do?
Undefined symbols for architecture armv7s:
"_SCNetworkReachabilityGetFlags", referenced from:
-[BCFAdsReachability connectionRequired] in RevMobAds(BCFAdsReachability.o)
-[BCFAdsReachability currentReachabilityStatus] in RevMobAds(BCFAdsReachability.o)
"_SCNetworkReachabilityCreateWithAddress", referenced from:
+[BCFAdsReachability reachabilityWithAddress:] in RevMobAds(BCFAdsReachability.o)
"_SCNetworkReachabilityCreateWithName", referenced from:
+[BCFAdsReachability reachabilityWithHostName:] in RevMobAds(BCFAdsReachability.o)
"_SCNetworkReachabilityScheduleWithRunLoop", referenced from:
-[BCFAdsReachability startNotifier] in RevMobAds(BCFAdsReachability.o)
"_SCNetworkReachabilityUnscheduleFromRunLoop", referenced from:
-[BCFAdsReachability stopNotifier] in RevMobAds(BCFAdsReachability.o)
"_SCNetworkReachabilitySetCallback", referenced from:
-[BCFAdsReachability startNotifier] in RevMobAds(BCFAdsReachability.o)
ld: symbol(s) not found for architecture armv7s
clang: error: linker command failed with exit code 1 (use -v to see invocation)
You must to include the SystemConfiguration framework as described on the SDK page.
I have my Static Library
In this project i added a Reachability.h .m file.
So, I have some linker errors:
I added also the CFNetwork and System.Configuration framwork
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)
I have solved this...
I added systemconfiguration.framework in my test app project that uses my static library
You must be sure, that your Reachability.h .m gets compiled. You need to go to your "Build Phases", then to "Compile SOurces" and add Reachability.m to compile sources.