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.
Related
I'm trying to add PayPal into my iOS application that uses Parse.
After following the official PayPal guide on GitHub I'm getting this error:
Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_SLComposeViewController", referenced from:
objc-class-ref in Parse(PF_Twitter.o) "_OBJC_CLASS_$_SLRequest", referenced from:
objc-class-ref in Parse(PF_Twitter.o) "_SLServiceTypeTwitter", referenced from:
-[PF_Twitter getAccessTokenForReverseAuthAsync:localTwitterAccount:] in
Parse(PF_Twitter.o)
-[PF_Twitter getLocalTwitterAccountAsync] in Parse(PF_Twitter.o) ld: symbol(s) not found for architecture arm64 clang: error: linker
command failed with exit code 1 (use -v to see invocation)
Any Ideas?
Add Framework Social.framework and Accounts.framework from project settings.
Please check parse.com integration Help Links
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 am new in phonegap app development in iOS. After adding CordovaLib.xcodeproj in my xcode project, I made architecture changes in buildsettings as suggested here. Other linker flag is -all_load and -Obj-C When I build the project, I get Apple Mach-O linker errors described below. I have not mentioned i386 anywhere in my build settings. How do I negate this error?
Undefined symbols for architecture i386:
"_CDVPluginHandleOpenURLNotification", referenced from:
-[AppDelegate application:handleOpenURL:] in AppDelegate.o
"_OBJC_CLASS_$_CDVPlugin", referenced from:
_OBJC_CLASS_$_LoginPlugin in LoginPlugin.o
"_OBJC_CLASS_$_CDVPluginResult", referenced from:
objc-class-ref in LoginPlugin.o
"_OBJC_CLASS_$_CDVViewController", referenced from:
_OBJC_CLASS_$_MainViewController in MainViewController.o
"_OBJC_METACLASS_$_CDVPlugin", referenced from:
_OBJC_METACLASS_$_LoginPlugin in LoginPlugin.o
"_OBJC_METACLASS_$_CDVViewController", referenced from:
_OBJC_METACLASS_$_MainViewController in MainViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I am integrating flurry ads. Previously ads are working in xcode 5.0.0 with flurry sdk 4.3.5..
But as I updated my xcode to 5.1.0 and flurry to 5.0.0, Ads are not working and showing an error,
Undefined symbols for architecture i386:
"_crc32", referenced from:
_unzReadCurrentFile in libFlurryAds_5.0.0.a(libFlurryAds.a-i386-master.o)
_zipWriteInFileInZip in libFlurryAds_5.0.0.a(libFlurryAds.a-i386-master.o)
-[ZipArchive addFileToZip:newname:] in libFlurryAds_5.0.0.a(libFlurryAds.a-i386-master.o)
"_deflate", referenced from:
_zipWriteInFileInZip in libFlurryAds_5.0.0.a(libFlurryAds.a-i386-master.o)
_zipCloseFileInZipRaw in libFlurryAds_5.0.0.a(libFlurryAds.a-i386-master.o)
"_deflateEnd", referenced from:
_zipCloseFileInZipRaw in libFlurryAds_5.0.0.a(libFlurryAds.a-i386-master.o)
"deflateInit2", referenced from:
_zipOpenNewFileInZip3 in libFlurryAds_5.0.0.a(libFlurryAds.a-i386-master.o)
"_get_crc_table", referenced from:
_unzOpenCurrentFile3 in libFlurryAds_5.0.0.a(libFlurryAds.a-i386-master.o)
_zipOpenNewFileInZip3 in libFlurryAds_5.0.0.a(libFlurryAds.a-i386-master.o)
"_inflate", referenced from:
_unzReadCurrentFile in libFlurryAds_5.0.0.a(libFlurryAds.a-i386-master.o)
"_inflateEnd", referenced from:
_unzCloseCurrentFile in libFlurryAds_5.0.0.a(libFlurryAds.a-i386-master.o)
"inflateInit2", referenced from:
_unzOpenCurrentFile3 in libFlurryAds_5.0.0.a(libFlurryAds.a-i386-master.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I am resolve this error. Please help.
Also I have checked that flurry lib are showing in frameworks and also copied in bundle resources.
Resolved the error, Adding "libz.dylib" library to framework in Target setting tabs.
Target setting -> Build Phases -> Link Binary with libraries.
The problem is that you are missing a required framework that flurryads has as a dependency. Make sure you have 'SystemConfiguration', 'UIKit', 'Security' and 'CoreGraphics' added.
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.