Xcode: "Relative to Built Product" file reference problems for hydbrid projects (iOS/Mac).

Originator:raphael
Number:rdar://20089778 Date Originated:09-Mar-2015 11:05 AM
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode 6.3
Classification:Serious Bug Reproducible:Always
 
We use projects that have *both* iOS and Mac static library targets. 

When building the iOS target, if the project is configured as Mac SDK, target as iOS SDK, built products will remain red in Products listing, project tree, and cannot be accessed (although they are correctly built). 

When building that same iOS target, if the project is configured as iOS SDK, target as iOS SDK, built products become black once built, as expected.

This has all kind of implications. For instance, when we drag/drop a static lib from the build folder into Xcode hierarchy, and then we change that file reference type from "Relative to Group" to "Relative to Build Products", the computed path is not correct (if target and project don't have the same SDK). 

It looks very much like the Build Products folder depends on Project SDK and not Target SDK, which is a wrong assumption in the general case.

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!