Add "$(OBJROOT)/UninstalledProducts/include to default header search paths

Originator:stephan.diederich
Number:rdar://11901307 Date Originated:18-Jul-2012 04:17 PM
Status:Closed Resolved:
Product: Product Version:
Classification: Reproducible:
 
18-Jul-2012 04:17 PM Stephan Diederich:
Summary:
In one of the recent Xcode releases (4.3.3 has it), a new default include path was introduced, namely $(TARGET_BUILD_DIR)/include. 

This is quite handy, as when an application depends on static libraries, those libraries can install/copy their headers to that directory and the application just picks them up.

This does not work in Archive builds, as "$(OBJROOT)/UninstalledProducts/include" is missing in the default includes.

Steps to Reproduce:
Create an empty project.
1) Build and see in build output that $(TARGET_BUILD_DIR)/include is present in the includes.
2) Archive and see in build output that $(OBJROOT)/UninstalledProducts/include is not present in the includes.

Expected Results:
Adding a static library project to an app should not only work out of the box during nomal builds, but also in archive builds.

Actual Results:
Archive fails.

Regression:
- 

Notes:
in 4.5-DP3 (4G125j) this is still an issue.


18-Sep-2012 09:46 AM Stephan Diederich:
Same in Version 4.5 (4G182) .

Comments

see https://github.com/jspahrsummers/xcconfigs/pull/5 for some thoughts about this and a sreenshot of what is probably meant with the answer above.

By stephan.diederich at Feb. 21, 2013, 6:20 p.m. (reply...)

I haven't thought this through, but will definitely give it a try and report back...

By stephan.diederich at Feb. 21, 2013, 5:11 p.m. (reply...)

21-Feb-2013 05:46 PM Apple Developer Bug Reporting Team :

Engineering has determined that this issue behaves as intended based on the following information:

Headers do not belong in the UninstalledProducts directory; only products belong there. We recommend that static libraries install their headers using a Copy Files build phase putting them in the Products Directory with a subpath of "include". That will put them in the right location for both normal and archive builds.

If this is still an issue, or you have questions regarding the resolution of this issue, please update your bug report with that information.

We are now closing this bug report.

Please be sure to regularly check new Apple releases for any updates that might affect this issue.

By stephan.diederich at Feb. 21, 2013, 5:10 p.m. (reply...)

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!