Google map framework error - ios

I have added google map framework but I have got following error
Undefined symbols for architecture armv7:
"_OBJC_CLASS_$_GMSMutablePath", referenced from:
objc-class-ref in ViewController+ProjSwizzles.o
"_OBJC_CLASS_$_GMSPolygon", referenced from:
l_OBJC_$_CATEGORY_GMSPolygon_$_ZSwizzles in GMSPolygon+ZSwizzles.o
objc-class-ref in ViewController+ProjSwizzles.o
"_OBJC_CLASS_$_GMSMapView", referenced from:
l_OBJC_$_CATEGORY_GMSMapView_$_Swizzles in GMSMapView+Swizzles.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

please check your Frameworks
AVFoundation.framework
CoreData.framework
CoreLocation.framework
CoreText.framework
GLKit.framework
ImageIO.framework
libc++.dylib
libicucore.dylib
libz.dylib
OpenGLES.framework
QuartzCore.framework
SystemConfiguration.framework

Related

Admob error compiling in swift

I have followed all the steps here manually and with pods and yet I always have a similar issue, an error like this one:
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_SFSafariViewController", referenced from:
objc-class-ref in GoogleMobileAds(flat-x86_64)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I added all of the frameworks manually:
AdSupport.framework
AudioToolbox.framework
AVFoundation.framework
CoreGraphics.framework
CoreTelephony.framework
EventKit.framework
EventKitUI.framework
MessageUI.framework
StoreKit.framework
SystemConfiguration.framework
including safariservices and corebluetooth
How can I solve this error?
YES problem solved when i update XCODE to the last version

Linker errors (undefined symbols) with Parse.framework

I added Parse.framework to my project. In AppDelegate.m, I just import it and set the application ID. It seemed OK, but when I run it, I get 4 errors.
What other frameworks should I add, or what else should I do ?
Here are the frameworks I added:
AudioToolbox.framework
CFNetwork.framework
CoreGraphics.framework
CoreLocation.framework
MobileCoreServices.framework
QuartzCore.framework
Security.framework
StoreKit.framework
SystemConfiguration.framework
libz.dylib
libsqlite3.dylib
Parse.framework
And here are the errors I am getting:
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_BFExecutor", referenced from:
objc-class-ref in Parse(Parse.o)//And other six
"_OBJC_CLASS_$_BFTask", referenced from:
objc-class-ref in Parse(Parse.o)//And other six
"_OBJC_CLASS_$_BFTaskCompletionSource", referenced from:
objc-class-ref in Parse(PFOfflineStore.o)//And other six
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
You must also add the Bolts.framework that comes with the Parse SDK as described in Step 2 on the quick start page:
https://www.parse.com/apps/quickstart#parse_data/mobile/ios/native/existing.
And ensure it gets listed under "Build Phases -> Link Binary with Libraries."
EDIT
Undefined symbols for architecture i386: _OBJC_CLASS_$_SKPSMTPMessage", referenced from: error
Found this.
This usually happens when you have multiple classes with same name in your. You might have included a file more then once.
Also check if you have by any chance imported .m file into some file.

Google Analytics doesn't work on new iOS project

I have created a new iOS project and added Google Analytics support following by official instructions.
I've added to Frameworks:
libGoogleAnalyticsServices.a
AdSupport.framework
CoreData.framework
SystemConfiguration.framework
libz.dylib
But it doesn't work with the errors:
ld: warning: directory not found for option '-L/Users/.../Sources/GoogleAnalytics'
Undefined symbols for architecture armv7:
"_OBJC_CLASS_$_NSManagedObjectModel", referenced from:
objc-class-ref in libGoogleAnalyticsServices.a(GAICoreDataUtil.o)
"_OBJC_CLASS_$_NSAttributeDescription", referenced from:
objc-class-ref in libGoogleAnalyticsServices.a(GAICoreDataUtil.o)
"_OBJC_CLASS_$_NSEntityDescription", referenced from:
objc-class-ref in libGoogleAnalyticsServices.a(GAIDataStore.o)
objc-class-ref in libGoogleAnalyticsServices.a(GAICoreDataUtil.o)
"_OBJC_CLASS_$_NSPersistentStoreCoordinator", referenced from:
objc-class-ref in libGoogleAnalyticsServices.a(GAIDataStore.o)
"_OBJC_CLASS_$_NSFetchRequest", referenced from:
objc-class-ref in libGoogleAnalyticsServices.a(GAIDataStore.o)
"_OBJC_CLASS_$_NSManagedObjectContext", referenced from:
objc-class-ref in libGoogleAnalyticsServices.a(GAIDataStore.o)
"_NSSQLiteErrorDomain", referenced from:
-[GAIDataStore performBlockAndWait:withError:] in libGoogleAnalyticsServices.a(GAIDataStore.o)
"_NSSQLiteStoreType", referenced from:
-[GAIDataStore coordinatorWithModel:URL:] in libGoogleAnalyticsServices.a(GAIDataStore.o)
"_NSOverwriteMergePolicy", referenced from:
-[GAIDataStore contextWithModel:URL:] in libGoogleAnalyticsServices.a(GAIDataStore.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
How can I fix it? And does it support arm64?
From Google Analytics developer page
The Google Analytics SDK uses the CoreData and SystemConfiguration frameworks, so you will need to add the following to your application target's linked libraries:
libGoogleAnalyticsServices.a
AdSupport.framework
CoreData.framework
SystemConfiguration.framework
libz.dylib
Looks like you are missing out CoreData.framework.
Running the lipo -info command on the GA library.
xcrun -sdk iphoneos lipo -info libGoogleAnalyticsServices.a
Gives result,
Architectures in the fat file: libGoogleAnalyticsServices.a are: armv7 armv7s i386 x86_64 arm64
So it does support arm64.
Hope that helps!
Thanks for all! The following steps helped me:
Remove CoreData.framework.
Add again CoreData.framework.
arm64 is now supported. Thanks to Amar.
Now I should fix the last warning:
ld: warning: directory not found for option '-L/Users/.../Sources/GoogleAnalytics'
It happens because I work with the project on different users.
You should add the libsqlite3.0.dylibfile to your frameworks.
To do this, under the projects target, on the general tab, you will find "Linked Frameworks and Libraries", just select the '+' button, and add the framework from there

Error in adding AFNetworking framework in the project

Adding AFNetworking framework in the project I got the following errors:-
Undefined symbols for architecture i386:
"_UTTypeCopyPreferredTagWithClass", referenced from:
_AFContentTypeForPathExtension in AFURLRequestSerialization.o
"_UTTypeCreatePreferredIdentifierForTag", referenced from:
_AFContentTypeForPathExtension in AFURLRequestSerialization.o
"_kUTTagClassFilenameExtension", referenced from:
_AFContentTypeForPathExtension in AFURLRequestSerialization.o
"_kUTTagClassMIMEType", referenced from:
_AFContentTypeForPathExtension in AFURLRequestSerialization.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 using xcode 4.5 with sdk iOS 6.0
Add following frameworks in your project:
MobileCoreServices.framework
SystemConfiguration.framework

Apple Mach-O Linker Error with CGContext

This error is driving me crazy, any idea?
Undefined symbols for architecture armv7s:
"_CGContextConcatCTM", referenced from:
-[PopoViewController onClick:] in PopoViewController.o
"_CGContextTranslateCTM", referenced from:
-[PopoViewController onClick:] in PopoViewController.o
"_CGContextSaveGState", referenced from:
-[PopoViewController onClick:] in PopoViewController.o
"_CGContextRestoreGState", referenced from:
-[PopoViewController onClick:] in PopoViewController.o
ld: symbol(s) not found for architecture armv7s clang: error: linker command failed with exit code 1 (use -v to see invocation)
The binary with libraries are linked.
The library search path is correct.
Thanks
Link your application with CoreGraphics.framework for iPhoneOS architecture.

Resources