• 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: Can't Find Header even though in project
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can't Find Header even though in project


  • Subject: Re: Can't Find Header even though in project
  • From: Chris Espinosa <email@hidden>
  • Date: Thu, 9 Mar 2006 16:33:26 -0800

On Mar 8, 2006, at 8:18 AM, Sean McBride wrote:

On 2006-03-07 21:48, Chris Espinosa said:


http://developer.apple.com/documentation/DeveloperTools/Conceptual/

XcodeUserGuide/Contents/Resources/en.lproj/05_04_bs_build_settings/

chapter_31_section_5.html#//apple_ref/doc/uid/TP40002691-BACGEIHB


Header Search Paths (HEADER_SEARCH_PATHS)

This is a list of paths to folders to be searched by the compiler for

included or imported header files when compiling C, Objective-C, C++,

or Objective-C++ source files.


CodeWarrior has this nice feature where adding headers (or anything) to

a project automatically adds the header's parent folder as an 'access

path' if it isn't one already.  It even entirely removes the access path

from the project when the last project file referenced relative to that

path is removed from the project.


Is this on the Xcode to-do list?


We do this for frameworks but not for individual headers.  But in this case that wouldn't help.  The OP isn't adding a new header to the project; he's hiding a header file from the compiler by burying it in an intermediate folder.  Even CodeWarrior doesn't handle that case; it sometimes saves you with recursive search paths, but in a trial I just did, it ended up finding a completely different "data.h" header file when I buried "data.h" in "New Folder/data.h".  

The whole point, though, is that if you have a header file in your project, Xcode should find it without having to manage access paths at all, and that should be robust across all operations on that file (move, rename, etc.)  We do have an active enhancement request for that.

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: Can't Find Header even though in project
      • From: "Wesley Smith" <email@hidden>
References: 
 >Can't Find Header even though in project (From: "Wesley Smith" <email@hidden>)
 >Re: Can't Find Header even though in project (From: Chris Espinosa <email@hidden>)
 >Re: Can't Find Header even though in project (From: "Sean McBride" <email@hidden>)

  • Prev by Date: Question about static linking...
  • Next by Date: Re: Can't Find Header even though in project
  • Previous by thread: Re: Can't Find Header even though in project
  • Next by thread: Re: Can't Find Header even though in project
  • Index(es):
    • Date
    • Thread