RevMob implementation errors - ios

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.

Related

Undefined symbols for architecture x86_64: for Firebase in Xcode 8.3.2

I installed firebase by manually to my Xcode for storage data purpose. I followed README from DOCS and integrated. But, the issue is, after everything setup, I am getting following compiler errors.
Undefined symbols for architecture x86_64:
“_kFIRAppDiagnosticsErrorKey”, referenced from:
+[FIRDiagnostics logDiagnostics:] in FirebaseCoreDiagnostics(FIRDiagnostics_0c03a82afb19aa444c2f4902b5217b60.o)
“_kFIRAppDiagnosticsSDKNameKey”, referenced from:
+[FIRDiagnostics logDiagnostics:] in FirebaseCoreDiagnostics(FIRDiagnostics_0c03a82afb19aa444c2f4902b5217b60.o)
“_kFIRAppDiagnosticsSDKVersionKey”, referenced from:
+[FIRDiagnostics logDiagnostics:] in FirebaseCoreDiagnostics(FIRDiagnostics_0c03a82afb19aa444c2f4902b5217b60.o)
“_kFIRAppDiagnosticsFIRAppKey”, referenced from:
+[FIRDiagnostics logDiagnostics:] in FirebaseCoreDiagnostics(FIRDiagnostics_0c03a82afb19aa444c2f4902b5217b60.o)
“_kFIRServiceAuthUI”, referenced from:
+[FIRDiagnostics populateLogProtoWithInstalledServices:] in FirebaseCoreDiagnostics(FIRDiagnostics_0c03a82afb19aa444c2f4902b5217b60.o)
+[FIRDiagnostics mapFromServiceStringToTypeEnum:] in FirebaseCoreDiagnostics(FIRDiagnostics_0c03a82afb19aa444c2f4902b5217b60.o)
“_kFIRAppDiagnosticsNotification”, referenced from:
+[FIRDiagnostics load] in FirebaseCoreDiagnostics(FIRDiagnostics_0c03a82afb19aa444c2f4902b5217b60.o)
“_FIRAuthStateDidChangeInternalNotificationAppKey”, referenced from:
-[FAuthStateListenerWrapper authStateDidChangeNotification:] in FirebaseDatabase(FAuthTokenProvider_213581f9a756863b453764defdcb42ec.o)
“_FIRAuthStateDidChangeInternalNotificationTokenKey”, referenced from:
-[FAuthStateListenerWrapper authStateDidChangeNotification:] in FirebaseDatabase(FAuthTokenProvider_213581f9a756863b453764defdcb42ec.o)
“_FIRAuthStateDidChangeInternalNotification”, referenced from:
-[FAuthStateListenerWrapper initWithListener:app:] in FirebaseDatabase(FAuthTokenProvider_213581f9a756863b453764defdcb42ec.o)
“_kFIRAppDiagnosticsConfigurationTypeKey”, referenced from:
+[FIRDiagnostics logDiagnostics:] in FirebaseCoreDiagnostics(FIRDiagnostics_0c03a82afb19aa444c2f4902b5217b60.o)
“_utf8_nextCharSafeBody”, referenced from:
-[FSRWebSocket _innerPumpScanner] in FirebaseDatabase(FSRWebSocket_221b45e2259898169b2d29adbe0c7833.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
It looks like you're missed adding the FirebaseCore framework and -licucore to OTHER_LD_FLAGS

Rechability Issue with framework

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.

Admob ios x64 error

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

Deezer Player incompatibility with arm architecture

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.

Reachability added in static library

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.

Resources