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.
Related
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.
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.
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.
I want to have my current cordova pp compatible for 64 bit iOS. I downloaded cordova 3.7 into my project but I am unable to build. I am getting the following error.
Undefined symbols for architecture arm64:
"_OBJC_METACLASS_$_CDVViewController", referenced from:
_OBJC_METACLASS_$_RootViewController in RootViewController.o
"_OBJC_METACLASS_$_CDVPlugin", referenced from:
_OBJC_METACLASS_$_DataBasePlugin in DataBasePlugin.o
_OBJC_METACLASS_$_LoginStatusPlugin in LoginStatusPlugin.o
"_OBJC_IVAR_$_CDVViewController._commandQueue", referenced from:
-[RootViewController didReceiveMemoryWarning] in RootViewController.o
"_OBJC_CLASS_$_CDVViewController", referenced from:
_OBJC_CLASS_$_RootViewController in RootViewController.o
"_OBJC_CLASS_$_CDVPlugin", referenced from:
_OBJC_CLASS_$_DataBasePlugin in DataBasePlugin.o
_OBJC_CLASS_$_LoginStatusPlugin in LoginStatusPlugin.o
"_OBJC_CLASS_$_CDVPluginResult", referenced from:
objc-class-ref in DataBasePlugin.o
objc-class-ref in LoginStatusPlugin.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I have also tried the steps from below link
https://shazronatadobe.wordpress.com/2014/03/12/xcode-5-1-and-cordova-ios/
I followed the below link to add the lib file to my project
http://outof.me/embedding-cordovalib-in-your-iosphonegap-app-project/
Please help
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.