Find your content:

Search form

You are here

error message on compile

 
Share

I am building and running my Xcode app but I get a build failed message on account of the following error message:

Undefined symbols for architecture x86_64:
  "_OBJC_CLASS_$_SFAccountManager", referenced from:
      objc-class-ref in AppDelegate.o
  "_OBJC_CLASS_$_SFApplication", referenced from:
      objc-class-ref in main.o
  "_OBJC_CLASS_$_SFAuthenticationManager", referenced from:
      objc-class-ref in AppDelegate.o
  "_OBJC_CLASS_$_SFLogger", referenced from:
      objc-class-ref in AppDelegate.o
  "_OBJC_CLASS_$_SFRestAPI", referenced from:
      objc-class-ref in OrderVC.o
      objc-class-ref in PerformanceVC.o
      objc-class-ref in CustomerDetailsVC.o
      objc-class-ref in AppDelegate.o
  "_kSFLoginHostChangedNotification", referenced from:
      -[AppDelegate init] in AppDelegate.o
      -[AppDelegate dealloc] in AppDelegate.o
  "_kSFUserLogoutNotification", referenced from:
      -[AppDelegate init] in AppDelegate.o
      -[AppDelegate dealloc] in AppDelegate.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

How do I resolve this/these issue(s)?


Attribution to: Bart

Possible Suggestion/Solution #1

Well, as the error message says, you're trying to reference a symbol that is unknown for your current architecture (x86_64).

Are you sure that the SDK includes an x86_64 slice for the simulator? Have you cleaned recently and/or nuked your project's derived data? Are you running with ONLY_ACTIVE_ARCH enabled or disabled?


Attribution to: Jonathan Hersh

Possible Suggestion/Solution #2

The answer to the question is supplied by @z00b on Stackoverflow. "I would set Architectures in your project to *$(ARCHS_STANDARD_32_BIT)*, which will do the right thing for both iOS builds and OS X / simulator builds.

*The problem is that your library is not built for x86_64, but your project is trying to build for both i386 and x86_64, so the link step fails. Apple changed the default architecture in Xcode 5.1 to include 64-bit architectures*."


Attribution to: Bart
This content is remixed from stackoverflow or stackexchange. Please visit https://salesforce.stackexchange.com/questions/30728

My Block Status

My Block Content