在我的iOS应用程序中,未定义的符号用于体系结构x86_64

时间:2015-04-11 04:14:59

标签: ios linker-errors cocoapods undefined-symbol

尝试让我的应用程序为arm64做好准备并更新我的所有pod。我更新了所有pod,但收到此错误,因此应用程序将无法编译。

    Undefined symbols for architecture x86_64:
  "_OBJC_CLASS_$_AFHTTPClient", referenced from:
      objc-class-ref in MYAPP.o
  "_OBJC_CLASS_$_AFJSONRequestOperation", referenced from:
      objc-class-ref in MYAPP.o
  "_OBJC_CLASS_$_AFNetworkActivityIndicatorManager", referenced from:
      objc-class-ref in MYAPP.o
  "_OBJC_CLASS_$_RKAttributeMapping", referenced from:
      objc-class-ref in MYAPP.o
  "_OBJC_CLASS_$_RKEntityMapping", referenced from:
      objc-class-ref in MYAPP.o
  "_OBJC_CLASS_$_RKErrorMessage", referenced from:
      objc-class-ref in MYAPP.o
  "_OBJC_CLASS_$_RKManagedObjectStore", referenced from:
      objc-class-ref in MYAPP.o
      objc-class-ref in NSManagedObject+ActiveRecord.o
  "_OBJC_CLASS_$_RKObjectManager", referenced from:
      objc-class-ref in MYAPP.o
      _OBJC_CLASS_$_STObjectManager in STObjectManager.o
      objc-class-ref in NSManagedObject+EasyFetching.o
  "_OBJC_CLASS_$_RKObjectMapping", referenced from:
      objc-class-ref in MYAPP.o
  "_OBJC_CLASS_$_RKRelationshipMapping", referenced from:
      objc-class-ref in MYAPP.o
  "_OBJC_CLASS_$_RKRequestDescriptor", referenced from:
      objc-class-ref in MYAPP.o
  "_OBJC_CLASS_$_RKResponseDescriptor", referenced from:
      objc-class-ref in MYAPP.o
  "_OBJC_CLASS_$_RKRoute", referenced from:
      objc-class-ref in MYAPP.o

2 个答案:

答案 0 :(得分:1)

有几件事可能会解决这个问题:

  1. 检查以下项目的工作空间/构建设置和窗格/构建设置:体系结构,仅构建活动体系结构,有效体系结构。所有三个工作区都应匹配。

  2. 尝试清洁(CMD-Shift-K)并清洁构建文件夹(CMD-Option-Shift-K)。

答案 1 :(得分:0)

我通过从1.0.1版本回到0.39.0.beta.3版本的cocoapods来解决这个问题。