3

I am getting this error when i run it on iPhone 5s simulator. It executes normally in lower versions of iPhone 5s. In my app i am using 3rd party lib CompuwareUEM. And also added all the files and lib file related to CompuwareUEM and it is compatible for 64bit.

Undefined symbols for architecture x86_64:
  "_OBJC_CLASS_$_CompuwareUEM", referenced from:
      objc-class-ref in AppDelegate.o
      objc-class-ref in SplashScreenViewController.o
      objc-class-ref in CreateProfileViewController.o
      objc-class-ref in MyTripsViewController.o
      objc-class-ref in SettingsViewController.o
      objc-class-ref in TrackingViewController.o
      objc-class-ref in UserloginViewController.o
      ...
  "_OBJC_CLASS_$_UEMAction", referenced from:
      objc-class-ref in SplashScreenViewController.o
      objc-class-ref in CreateProfileViewController.o
      objc-class-ref in MyTripsViewController.o
      objc-class-ref in SettingsViewController.o
      objc-class-ref in TrackingViewController.o
      objc-class-ref in UserloginViewController.o
      objc-class-ref in PickTripViewController.o
      ...
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

can any one of you help me thanks in advance

S P Balu Kommuri
  • 890
  • 10
  • 28
  • try to delete the architectures one by one and test it – SRI Feb 18 '15 at 11:59
  • http://stackoverflow.com/a/22708072/730701 – Adam Feb 18 '15 at 12:03
  • 3
    That library does not support x86 cpu. – user523234 Feb 18 '15 at 12:03
  • @TENSRI i tried in different ways that is deleting architectures one by one and tested my app i am getting the same linker error.... – S P Balu Kommuri Feb 18 '15 at 12:12
  • @user523234 can u plz tell me how do u know that library does not support x86 cpu. i check in [link](https://community.compuwareapm.com/community/display/DOCDT60/iOS+ADK+Setup+and+Instrumentation#iOSADKSetupandInstrumentation-CompuwareUEM) this documentation in that they told it is support for 64 bit also – S P Balu Kommuri Feb 18 '15 at 12:52

4 Answers4

3

Run lipo -info libCompuwareUEM.a and check if there is x86_64

Check this website, there is a detailed setup.

las
  • 288
  • 2
  • 8
  • what is lipo -info ? – iOS dev Feb 18 '15 at 12:23
  • lipo -info give you all the architectures supported by the binary, you have a static library like `CompuwareUEM.a` or you have the source code of the lib in your project ? – las Feb 18 '15 at 14:12
2

Try to clean your complete build directory and derived data

open Xcode -> Product Clean and alt + product clean.

0

The x86_64 architecture is used when you run a 64bit iPhone simulator! DONT mix it with arm64 which is the 64-bit Device architecture.

The error clearly indicates that the library doesn't contain x86_64.
[you could also check with lipo as said by las but the error is quiet clear]

Daij-Djan
  • 49,552
  • 17
  • 113
  • 135
-6

issue resolved. The main problem is with the CompuwareUEM i totally remove that 3rd party library. Now it working fine.

S P Balu Kommuri
  • 890
  • 10
  • 28