build settings controlling header maps does nothing in xcode 5

Originator:yiding.jia
Number:rdar://15555345 Date Originated:27-Nov-2013 02:46 PM
Status:Open Resolved:
Product:XCode Product Version:5.0.1
Classification:Usability Reproducible:Always
 
Summary:
The following header map settings has no effect for library and application target types:

HEADERMAP_INCLUDES_PROJECT_HEADERS 
HEADERMAP_INCLUDES_FRAMEWORK_ENTRIES_FOR_ALL_PRODUCT_TYPES
HEADERMAP_INCLUDES_FLAT_ENTRIES_FOR_TARGET_BEING_BUILT

This is contrary to the Build Settings Reference documentation.

Steps to Reproduce:
1. Install Xcode 5
2. Create a project containing a dylib target or a console application target
3. add an xcconfig file to the targets, setting the above three build settings to "NO"
3. Create a subdirectory in the source directory with 1 header file, adding this file to the project hierarchy, but not to the header build phase of the target (if applicable)
4. #include "thefile.h" in the main class or main file of the library/application.
5. build

Expected Results:
The build should fail, because the subdirectory should not be searched, and it should not be referencing any header files with flattened file name mappings. The header files should also not contain flattened file name mappings.

Actual Results:
The build succeeds. Headermap files are written to the DerivedData directory, containing flattened file mappings (TARGETNAME-project-headers.hmap, TARGETNAME.hmap).

Version:
Version 5.0.2 (5A3005)

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!