Xcode 7: Framework dependencies from a workspace inherit the wrong path when added to sibling projects

Originator:tony
Number:rdar://22468860 Date Originated:28-Aug-2015 12:05 PM
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode Version 7.0 beta 6 (7A192o) / OS X Version 10.11 Beta (15A263e)
Classification:Other Bug Reproducible:Always
 
Summary:
When adding an Xcode project that builds a framework to an Xcode workspace, any project within the workspace that adds that framework gets the wrong build path.

Steps to Reproduce:
1. Open the attached sample project workspace (SearchPathsTest.xcworkspace)
2. Expand the "SearchPathsTest" project, and select "Expecta.framework"
3. In the File inspector, check the value for "Location"

Expected Results:
Expecta.framework

Actual Results:
../../../../../../../../Desktop/SearchPathsTest/Vendor/expecta/build/Debug/Expecta.framework

Version:
Xcode Version 7.0 beta 6 (7A192o) / OS X Version 10.11 Beta (15A263e)

Notes:
This seems to interfere with framework path resolution in my projects. `#import <Expecta/Expecta.h>` in my test target gives an error of `'Expecta/Expecta.h' file not found`. The test target still compiles fine, so it looks like the Xcode editor is having issues where the compiler is not. 

Thanks guys!

Comments

Interestingly (and related) — when I have the scheme's "Gather coverage data" checkbox unchecked, the Expecta framework is output to /Users/tonyarnold/Library/Developer/Xcode/DerivedData/SearchPathsTest-bdogubodedfinfdabjrmtlwihnxx/Build/Products/Debug/Expecta.framework — when I check it, Expecta ends up in /Users/tonyarnold/Library/Developer/Xcode/DerivedData/SearchPathsTest-bdogubodedfinfdabjrmtlwihnxx/Build/Intermediates/CodeCoverage/SearchPathsTest/Products/Debug/Expecta.framework

I don't touch the default framework search paths, but it seems like when "Gather coverage data" is checked the framework can't be found by Xcode's editor (no autocomplete of the framework header, and importing shows the error below).

Files for this radar are at:

  • https://dl.dropboxusercontent.com/u/153352/Radars/22468860/SearchPathsTest.zip
  • https://dl.dropboxusercontent.com/u/153352/Radars/22468860/build_tests_error.txt.zip

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!