In my iOS application, undefined symbols for x86_64 architecture

Trying to prepare my application for arm64 and update all my containers. I updated all containers, but I get this error, so the application will not compile.

    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
+4
source share
2 answers

There are several things that can fix this:

  • Check the workspace / build settings and Pods / Build settings for the following items: Architectures, Built-in Active Architecture Only, Virtual Architectures. All three must match between both workspaces.

  • Try cleaning (CMD-Shift-K) and also clear the build folder (CMD-Option-Shift-K).

+1

, 1.0.1 cocoapods 0.39.0.b.3.

0

All Articles