Re: Target Dependancy Problem
Re: Target Dependancy Problem
- Subject: Re: Target Dependancy Problem
- From: Chris Hanson <email@hidden>
- Date: Sat, 14 Jan 2006 21:29:56 -0800
On Jan 14, 2006, at 3:01 PM, Peer Allan wrote:
I am developing an application and a framework that it is dependent
upon. I have linked the 2 projects together, with target
dependencies, and everything appears to be linking and compiling
correctly except for one important thing. The classes that are
part of the Framework are not working in the application. The
header file is being imported. If I instantiate an object from the
framework and attempt to view its class ( NSLog(@"%@", [object
class]) it always outputs NULL. If I comment out the header import
then I get the expected compilation errors for unrecognized classes.
If you turn of ZeroLink, do you get linker errors for unrecognized
classes? If so, that would indicate that you've only set up a
dependency from your application target to your framework target.
You also need to link your application against the framework.
You can do this by making your application's target the active target
in its Xcode project. Then highlight the framework project in the
Groups & Files tree of your application project. Assuming you're
using the Xcode's default layout, in the detail view at the right of
your project window you'll see the products built by your framework
project; there'll also be a column with a checkbox in it whose header
looks like a target. That's the Target Membership column, and it
should be checked for your framework if it isn't already.
Once you've done this, your framework should show up under the Link
Binary With Libraries build phase for your application.
-- 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