• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Link failure (clang failed with exit code 1) with no explanation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Link failure (clang failed with exit code 1) with no explanation


  • Subject: Re: Link failure (clang failed with exit code 1) with no explanation
  • From: Jens Alfke <email@hidden>
  • Date: Thu, 05 Apr 2012 15:14:22 -0700


On Apr 5, 2012, at 1:31 PM, David Dunham wrote:

Trying to build an app, and we get an error linking it. There is no explanation I can see of what the error actually is (normally I'd expect something like an unresolved symbol).

This has happened to me too. The linker does actually output an error, but for some reason it doesn't show up in Xcode, just the subsequent report that the linker exited. 

The workaround I found was to copy the entire set of commands for that build step (in your case, not the first "Ld /Users…" line but everything after it up until the error line), then paste it into a new Terminal window. That will re-run the commands, and you should see the actual error at the end of the output.

Make sure to close the Terminal window afterwards, because the build commands mess with the shell's environment variables in ways that may confuse you if you try to run any normal shell commands in it later.

—Jens

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Link failure (clang failed with exit code 1) with no explanation (From: David Dunham <email@hidden>)

  • Prev by Date: Re: Debugger halting in wrong place
  • Next by Date: Re: Xcode 3.2.6 file names and lion
  • Previous by thread: Re: Link failure (clang failed with exit code 1) with no explanation
  • Next by thread: Detecting default keychain
  • Index(es):
    • Date
    • Thread