Re: Undefined symbols when building unit testing bundle in Release configuration
Re: Undefined symbols when building unit testing bundle in Release configuration
- Subject: Re: Undefined symbols when building unit testing bundle in Release configuration
- From: Andreas Eriksson <email@hidden>
- Date: Wed, 3 Feb 2010 22:20:00 +0100
On Wed, Feb 3, 2010 at 9:00 PM, Andreas Eriksson <email@hidden> wrote:
> I have a bundle with unit tests that tests my application. It works
> fine in Debug configuration but when I link the test bundle in Release
> configuration, I get undefined symbols errors for symbols in the
> application.
>
> I have compared the link commands in Debug and Release and they are
> identical except for pathnames containing either Debug or Release.
>
> The link commands contains the -bundle_loader flag, which is what I
> assume is what should make it find the symbols in the application,
> e.g. -bundle_loader
> /Users/andreas/workingfolder/cal/trunk/build/Release/cal.app/Contents/MacOS/cal
>
> Any clues?
Answering my own question, or rather, Daniel Jalkut did in a comment
to Chris Hansons guide: Uncheck "Symbols Hidden By Default" for the
application.
The confusing thing is that by default the Debug configuration (which
works) has "Symbols Hidden By Default" enabled just like Release does,
but since it has "Fix & Continue" enabled i Debug, it overrides the
other setting.
/ Andreas
_______________________________________________
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