【问题标题】:Xcode get error when using CoapodXcode 使用 Coapod 时出错
【发布时间】:2013-11-12 07:52:39
【问题描述】:

我正在使用 Cocoapod 获取 Global Lib。它在模拟器中运行良好,但在我的设备上构建时出现了一些错误:

Undefined symbols for architecture armv7s:
  "_OBJC_CLASS_$_FBRequest", referenced from:
      objc-class-ref in HomeViewController.o
  "_OBJC_CLASS_$_SBJsonParser", referenced from:
      objc-class-ref in IQRequest.o
  "_AFNetworkingOperationFailingURLResponseErrorKey", referenced from:
      ___78-[IQRequest performQueueOperationWithRequest:withSuccessBlock:andFailedBlock:]_block_invoke39 in IQRequest.o
  "_OBJC_CLASS_$_AFHTTPRequestOperation", referenced from:
      objc-class-ref in IQRequest.o
  "_OBJC_CLASS_$_AFHTTPClient", referenced from:
      objc-class-ref in IQRequest.o
  "_OBJC_CLASS_$_FBSession", referenced from:
      objc-class-ref in ChooseDesignerViewController.o
      objc-class-ref in IQUser.o
      objc-class-ref in IQAppDelegate.o
ld: symbol(s) not found for architecture armv7s
clang: error: linker command failed with exit code 1 (use -v to see invocation)

我的项目发生了什么?

【问题讨论】:

  • 请出示您的 Podfile。

标签: ios iphone objective-c xcode cocoapods


【解决方案1】:

您的库似乎不是为 armv7s 编译的。如果它以二进制形式分发,则必须要求维护者使用 armv7s 切片重新构建它。如果它作为源代码分发,您必须检查项目构建设置。我认为您应该寻找有效的架构或类似的东西。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-07-14
    • 2018-11-01
    • 1970-01-01
    相关资源
    最近更新 更多