SourceKit does not index when turning using Swift compiler flag '--enable-bridging-pch'
| Originator: | m.quinones.garcia | ||
| Number: | rdar://30326020 | Date Originated: | 02/02/2017 |
| Status: | Closed | Resolved: | Duplicated |
| Product: | XCode | Product Version: | 8.3 beta |
| Classification: | Reproducible: |
Summary: Using XCode beta in a project with mixed ObjC and Swift, pass the flag 'enable-bridging-pch' to the Swift compiler as described here: This will make any autocompletion not work in XCode due to an error with SourceKit. The error that can be seen in the console is: [1:getCursorInfo:7527:77900.8978] failed to create an ASTInvocation: error: unknown argument: '-enable-bridging-pch' Steps to Reproduce: 1. Use XCode 8.3 beta 2. Open a project with Mixed ObjC and Swift 3. Configure the project to send 'enable-bridging-pch' flag to Swift compiler 4. Compile, after that try writing code in any Swift file Expected Results: Autocompletion works normally Actual Results: Autocompletion doesn't work, an error can be seen in console, related to the flag and SourceKit: [1:getCursorInfo:7527:77900.8978] failed to create an ASTInvocation: error: unknown argument: '-enable-bridging-pch'
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!