Built artifacts (frameworks, app, etc.) output to "Intermediates/CodeCoverage" folder instead of "Products/$CONFIGURATION_BUILD_DIR"
| Originator: | brian.gerstle | ||
| Number: | rdar://23588122 | Date Originated: | 11/17/2015 |
| Status: | Open | Resolved: | |
| Product: | Xcode | Product Version: | 7.1.1 (7B1005) |
| Classification: | Other Bug | Reproducible: | Always |
Summary: When code coverage is enabled in Xcode 7, Xcode outputs all build artifacts to the "CodeCoverage" folder instead of their usual location. This change doesn't seem handled by all components in the build chain—specifically the indexer. Steps to Reproduce: 1. Clean project & delete derived data folder 2. Enable "Gather coverage data" in scheme's testing settings 3. Build project Expected Results: Output is in the expected folder (as determined by Xcode & build settings), and both syntax highlighting and autocomplete functionality are preserved. Actual Results: Build outputs go into "CodeCoverage" folder, breaking syntax highlighting and autocomplete are broken due to "module not found errors." The clang indexer is unable to find modules which have been output to the "CodeCoverage" folder instead of the built products directory when included with @import. #import <> still works. Version: Xcode: 7.1.1 (7B1005) OSX: 10.11.1 (15B42) Notes: Configuration: Gather coverage enabled, module included with @import: autocomplete & syntax highlighting are broken, build products output to "CodeCoverage" Gather coverage disabled or module included with #import <>: everything works normally
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!
Any word on whether this is resolved in Xcode 8?