Reachability added in static library - ios

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.

Related

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.

Can't run app when including AWS frameworks

I'm coding using swift and followed the AWS documentation:
Added the updated frameworks on the Objective-C Bridging header
Setup cognito on app delegate
after that, this is spitting out:
Undefined symbols for architecture i386:
"_deflate", referenced from:
-[NSData(AWSGZIP) awsgzip_gzippedDataWithCompressionLevel:] in AWSCore(AWSGZIP.o)
"_deflateEnd", referenced from:
-[NSData(AWSGZIP) awsgzip_gzippedDataWithCompressionLevel:] in AWSCore(AWSGZIP.o)
"deflateInit2", referenced from:
-[NSData(AWSGZIP) awsgzip_gzippedDataWithCompressionLevel:] in AWSCore(AWSGZIP.o)
"_inflate", referenced from:
-[NSData(AWSGZIP) awsgzip_gunzippedData] in AWSCore(AWSGZIP.o)
"_inflateEnd", referenced from:
-[NSData(AWSGZIP) awsgzip_gunzippedData] in AWSCore(AWSGZIP.o)
"inflateInit2", referenced from:
-[NSData(AWSGZIP) awsgzip_gunzippedData] in AWSCore(AWSGZIP.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Using Xcode 7.0
How can I fix this?
You need to add libsqlite3.dylib and libz.dylib and SystemConfiguration.framework. See Set Up the SDK for iOS for more details.

Undefined symbols for architecture i386: "_sqlite3_open", referenced from:

i have sqlite3.dylib also in my application, but it give me that upper error i don't know that how to fix this error. please someone help me i am waiting?
Undefined symbols for architecture i386:
"_sqlite3_open", referenced from:
-[MyDataBase openOrCreateDatabase:] in MyDataBase.o
"_sqlite3_exec", referenced from:
-[MyDataBase createTable:] in MyDataBase.o
-[MyDataBase InsertTable:] in MyDataBase.o
-[MyDataBase UpdataTable:] in MyDataBase.o
-[MyDataBase queryTableByCallBack:] in MyDataBase.o
"_sqlite3_close", referenced from:
-[MyDataBase closeDatabase] in MyDataBase.o
"_sqlite3_get_table", referenced from:
-[MyDataBase queryTable:] in MyDataBase.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
You're showing us the linked libraries for the "Fortress of Muslim" target, but your linker error is happening on the other target, the "Fortress of MuslimTests" target.
Either remove the dependency to SQLite in the "Tests" target, or include SQLite to the list of linked libraries for that target.

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.

RevMob implementation errors

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.

Resources