Re: Using SenTestingKit for testing a framework
Re: Using SenTestingKit for testing a framework
- Subject: Re: Using SenTestingKit for testing a framework
- From: Chris Hanson <email@hidden>
- Date: Wed, 17 May 2006 01:08:15 -0700
On May 17, 2006, at 12:03 AM, Bertrand Mansion wrote:
Do I have to set up some parameters in Xcode test target settings
so that the
test bundle know where to find the framework and how to load it ? I
am not very
much at ease with Xcode settings so I would really appreciate some
help or
eventually a pointer to a tutorial.
All you need to do is tell Xcode to link your test bundle against you
framework. (I assume both are in the same project.)
One way to do this is to expand your unit test bundle target under
the Targets group. Then drag your framework's icon from the Products
group into your unit test bundle target's "Link Binary With
Libraries" build phase. This will cause your unit test bundle to
link against your framework when its target is built.
You'll also want to set up a dependency between the two targets. You
can do this by getting info on the unit test bundle target, and in
the General tab of its info window, adding your framework target.
This will ensure that any time you build your unit test bundle, your
framework will also be built if it's out-of-date.
-- Chris
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden