【问题标题】:Latest Google Plus iOS SDK 1.7.1 not supporting architecture x86_64最新的 Google Plus iOS SDK 1.7.1 不支持 x86_64 架构
【发布时间】:2015-08-01 05:27:39
【问题描述】:

我的项目中有最新的由 cocoapods 管理的 Google Plus iOS SDK。

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

简单代码为:

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

我收到此错误:

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)

我的Other Linker Flags 中有$(inherited)-ObjC。 Google Plus iOS SDK 根本不支持 x84_64 架构吗?我该如何解决这个问题?谢谢

【问题讨论】:

    标签: ios objective-c xcode google-plus cocoapods


    【解决方案1】:

    我查看了一个全新的 XCode 项目并将其他链接器标志复制到我当前的项目中并且它工作正常。

    您可能需要添加二进制库列表,例如 here

    并设置其他链接器标志

    $(inherited) -ObjC -l"c++" -l"icucore" -l"z" -framework "AVFoundation" -framework "Accelerate" -framework "CoreBluetooth" -framework "CoreData" -framework “CoreGraphics”-框架“CoreLocation”-框架“CoreText”-框架“GLKit”-框架“GoogleMaps”-框架“ImageIO”-框架“OpenGLES”-框架“QuartzCore”-框架“安全”-框架“SystemConfiguration” em>

    【讨论】:

      【解决方案2】:

      嗯,我的测试目标中有 GooglePlusManager。将其从编译源中移除,修复它。

      【讨论】:

        猜你喜欢
        • 2017-07-11
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2018-02-26
        • 2013-12-10
        • 1970-01-01
        • 2015-04-23
        • 1970-01-01
        相关资源
        最近更新 更多