• 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: Target Dependancy Problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Target Dependancy Problem
      • From: Peer Allan <email@hidden>
References: 
 >Target Dependancy Problem (From: Peer Allan <email@hidden>)

  • Prev by Date: Is setting the class the same as setting a parent entity?
  • Next by Date: CORE DATA: setImage (transient) and setImageData (binary) accessors don't fire.
  • Previous by thread: Target Dependancy Problem
  • Next by thread: Re: Target Dependancy Problem
  • Index(es):
    • Date
    • Thread