• 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: "R.L. Grigg" <email@hidden>
  • Date: Mon, 19 May 2008 14:57:53 -0700


On May 15, 2008, at 9:57 PM, Chris Hanson wrote:

On May 15, 2008, at 9:33 PM, R.L. Grigg wrote:

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.


Yes, my framework already had the checkbox next to it clicked (with a checkmark in blue) for my target. I didnt check it, it was already checked. BTW, this is a vanilla build. I havent modified any of the project settings from their defaults.

If you twist down your target in the Targets group, and look in its Link Binary With Libraries build phase, do you see your framework?


<Target Link Phase.png>


Your framework needs to be in there in order to be linked as part of your application build. When you add the framework to your project, and choose in the resulting sheet to add it to a target in the project, the framework should automatically be routed to that build phase. However, if for whatever reason that didn't happen, you should just put it in there yourself by dragging its entry in the Groups & Files tree under your project into the phase.

Yes, my framework appeared in the Targets->"Link Binary with Libraries" along with Cocoa.framework. I opened the entry for my framework and it had a Headers folder, and in it were the include files I was trying to include. But the build still didnt see them unless I manually added each include file to my project. The build did correctly link against my framework; something just wasnt triggering it to look in my framework for the include files.


Anyhow, what I did though was to figure that some sort of support file musta got munged somehow. So I created a new project, copied the source code files over and voila it does find the framework includes and builds correctly. Dont know what was messed with the old project shell but good riddance to it.

Thanks, Chris!
Russ

_______________________________________________
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


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>)
 >Re: Importing framework include files (From: Chris Hanson <email@hidden>)
 >Re: Importing framework include files (From: "R.L. Grigg" <email@hidden>)
 >Re: Importing framework include files (From: Chris Hanson <email@hidden>)

  • Prev by Date: Re: Conditional dependencies (and linked libraries) in a Xcode project?
  • Next by Date: Re: The Xcode 'Preprocess' option - what is it actually doing?
  • Previous by thread: Re: Importing framework include files
  • Next by thread: Re: Xcode-users Digest, Vol 5, Issue 298
  • Index(es):
    • Date
    • Thread