0

我正在使用 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)

我的项目发生了什么?

4

1 回答 1

0

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

于 2013-11-12T08:11:52.377 回答