Apple Mach -O Linker error when using Google Maps SDK

I have installed the Google Maps SDK using CocoaPods. When compiling, I have an error:

linker command failed with exit code 1 (use -v to see invocation)

      

I have installed all these 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
libstdc++.dylib
CoreBlueTooth.framework
Accelerate.framework

      

I also removed "Armv7s" in valid architecture in build settings as some people have talked about other threads, but I still get linker error. Is there a way to get around this?

+3


source to share


3 answers


Add the following lines to your other linker flags.



$ (inherited)

+2


source


Add keys to other linker flags in build settings.



-all_load
-lc++
-ObjC

      

0


source


Swift 3.0

I removed all values ​​from "Other Linker Flags " and it works great for me. I am using Swift 3.0 and Objective-c in a project and added manually to google maps in the project.

0


source







All Articles