Re: Headers in folder references
Re: Headers in folder references
- Subject: Re: Headers in folder references
- From: Andreas Grosam <email@hidden>
- Date: Mon, 30 Jul 2012 12:18:03 +0200
On 30.07.2012, at 11:13, Rick Mann wrote:
> Yep, knew that, too. But what still seems to be the case is that it only does that for header files added to the project directly, rather than in folder references.
It seems that there needs to be a file reference to that header file. If that file does not exist (yet), Xcode may not create a header search path for the header map. But I've never found a precise documentation about header maps. There are only some vague statements in the documentation about header files, and none about header maps.
> Seems to me it should do it for both. Not sure if that's a bug or feature, or if there's a way to tell it to include those folders in the search paths.
It's difficult to tell, since the header maps are encoded in some binary format - and since they are not documented.
> I generally dislike having to set the build setting.
You better should not dislike it :) In fact, this is the method to get your header path issues solved. Otherwise, your headers seem to appear in a flat namespace - calls for trouble in a more complex project.
For what's worth, the header map feature is not helpful, especially in more complex projects with a more complex folder hierarchy where your sources reside. I prefer to setup header search paths manually - and I never had troubles with headers - except in cases where there was a bug in header maps (years ago) - which could finally be workaround by disabling the feature with an undocumented build setting.
Andreas
_______________________________________________
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