• 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: Importing framework include files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Importing framework include files


  • Subject: Re: Importing framework include files
  • From: Chris Hanson <email@hidden>
  • Date: Thu, 15 May 2008 20:58:50 -0700

On May 14, 2008, at 12:01 PM, R.L. Grigg wrote:
In a Cocoa project (OSX 10.5.2, Xcode 3.0) when I add a framework from /Library/Frameworks into the project "Linked Frameworks" group how do I then reference one of the frameworks include files from my code?

The "Linked Frameworks" group in the Groups & Files list is just a group, for organizational purposes. There's nothing particularly special about it.


You need to ensure your framework is actually linked by your target. You can do this by making it a member of your target: Just Get Info on the framework within Xcode, switch to the Targets tab, and click the checkbox next to the target that's going to use the framework.

My project is "NetHub" and I use a framework called "NetHubPorts".

Here is the compile:

In the compile command, there should have been a pair of arguments like this:


  -framework NetHubPorts

These are passed to the compiler to indicate that your project links against the NetHubPorts framework.

  -- Chris

_______________________________________________
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


  • Follow-Ups:
    • Re: Importing framework include files
      • From: "R.L. Grigg" <email@hidden>
References: 
 >Importing framework include files (From: "R.L. Grigg" <email@hidden>)
 >Re: Importing framework include files (From: Chris Espinosa <email@hidden>)
 >Re: Importing framework include files (From: "R.L. Grigg" <email@hidden>)

  • Prev by Date: Re: Importing framework include files
  • Next by Date: Re: Importing framework include files
  • Previous by thread: Re: Importing framework include files
  • Next by thread: Re: Importing framework include files
  • Index(es):
    • Date
    • Thread