Latest Google Plus iOS SDK 1.7.1 not supporting architecture x86_64

会有一股神秘感。 提交于 2019-11-30 09:54:03

问题


I have the latest Google Plus iOS SDK managed by cocoapods in my project.

pod 'google-plus-ios-sdk' ~> '1.7.1' #(Also tried 1.5.1)

Simple code as:

#import <GooglePlus/GooglePlus.h>
[GPPSignIn sharedInstance].clientID = kClientID; 

I get this error:

Undefined symbols for architecture x86_64:
  "_OBJC_CLASS_$_GPPSignIn", referenced from:
      objc-class-ref in GooglePlusManager.o
  "_OBJC_CLASS_$_GPPURLHandler", referenced from:
      objc-class-ref in GooglePlusManager.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 have $(inherited) and -ObjC in my Other Linker Flags. Does Google Plus iOS SDK not support x84_64 architecture at all? How do I fix this issue? Thanks


回答1:


I looked at a completely new XCode Project and copied the other linker flags to my current project and it worked.

You might need to add a list of binary libraries like here

And set the other linker flags

To $(inherited) -ObjC -l"c++" -l"icucore" -l"z" -framework "AVFoundation" -framework "Accelerate" -framework "CoreBluetooth" -framework "CoreData" -framework "CoreGraphics" -framework "CoreLocation" -framework "CoreText" -framework "GLKit" -framework "GoogleMaps" -framework "ImageIO" -framework "OpenGLES" -framework "QuartzCore" -framework "Security" -framework "SystemConfiguration"




回答2:


Uhm turn out I have GooglePlusManager in my test target. Remove it from the compile Sources fixed it.



来源:https://stackoverflow.com/questions/31758580/latest-google-plus-ios-sdk-1-7-1-not-supporting-architecture-x86-64

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!