Xcode: cannot open C header file in swift-only project
| Originator: | markd | ||
| Number: | rdar://30764481 | Date Originated: | 2/28/2017 |
| Status: | Open | Resolved: | |
| Product: | Developer Tools | Product Version: | Version 8.3 beta 3 (8W132p) |
| Classification: | Serious Bug | Reproducible: | Always |
Summary: See attached project. See movie at [REDACTED] because of rdar://30364703 I have a libxml2 project. I wanted to look at the struct behind an xmlErrorPtr. The option-click shortcut window is worthless to me because clicking on a type shows nothing (rdar://30043998) So I tried opening the header with command-shift-O. Due to rdar://27195434, it hung. But there is also no way I can see the unadulterated C header. All the options for seeing the original form are not available. A simple task like "I want to see the contents of this header file" are impossible, so I went to another editor for that basic functionality. Project attached. Another plug for rdar://29884107 - Xcode needs a "collect all pertinent information" button to ease bug reporting when Xcode vomits on itself. Steps to Reproduce: Expected Results: Actual Results: Version: Version 8.3 beta 3 (8W132p) 10.12.2 (16C67) Notes: The generated header has been a non-stop source of bugs and frustration. When/if it works, it's cool, but oftentimes not: This is from some student materials for an advanced iOS course I teach: &Xcode; can be pretty flaky. If you see an empty generated header, or you're only seeing about 10 lines worth, or if you're seeing a pile of Swift, or you're not seeing changes you've made to the Swift file reflected in the generated header, you may need to successfully build and run your project to see the correct version. If you quick-open an &Objective-C; header and get a generated Swift interface instead of the actual header, quick-open the file again. Configuration: Attachments: 'TextExtractor.zip' and 'Screen Shot 2017-02-28 at 12.48.57 PM.png' were successfully uploaded.
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!