Re: Link failure (clang failed with exit code 1) with no explanation
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