Search code examples
iosxcode5linker-errors

linker command failed with exit code 1 (use -v to see invocation) error?


enter image description hereI am getting this below error can any one suggest me how to rectify this error. Here is my error

 warning: ignoring file /Users/xyz/Downloads/CC3x/CC3x/libFTC_RELEASE.a, missing required architecture i386 in file /Users/xyz/Downloads/CC3x/CC3x/libFTC_RELEASE.a (2 slices)ignoring file /Users/xyz/Downloads/CC3x/CC3x/libFTC_DEBUG.a, missing required architecture i386 in file /Users/xyz/Downloads/CC3x/CC3x/libFTC_DEBUG.a (2 slices)

Undefined symbols for architecture i386:
 "_OBJC_CLASS_$_FirstTimeConfig", referenced from:
  objc-class-ref in CC3xUtility.o
  objc-class-ref in CC3xMainViewController.o
  objc-class-ref in CC3xMainViewController_iPad.o
 ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Solution

  • This means you are trying to build your project and one of your valid architectures is i386 but you are including a library that doesn't have an i386 slice.