SourceKit constantly crashes after my project is built
Originator: | kpa | ||
Number: | rdar://35585018 | Date Originated: | 16-Nov-2017 11:26 AM |
Status: | DUPLICATE OF 21588771 | Resolved: | |
Product: | iOS + SDK | Product Version: | 9.1 |
Classification: | Crash/Hang/Data Loss | Reproducible: | Sometimes |
Summary: After nuking DerivedData, launching Xcode, waiting for indexing to finish and building my project; SourceKit begins to crash constantly. It appears to only happen when editing saving files while or after building. The problem started with Xcode 9 and was also observed in 9.0.1 and 9.1. Steps to Reproduce: 1. Clear derived data 2. Wait for indexing to finish (optional?) 3. Build the project 4. Edit normally Expected Results: A functioning IDE Actual Results: Editor functionality limited Version: 9.1 Notes: Attached are crash reports and Xcode's log obtained using: `SOURCEKIT_LOGGING=3 /Applications/Xcode-9.1.app/Contents/MacOS/Xcode &> xcode.log`. The logging was started after clearing DerivedData. I waited for indexing to finish and then started a build. I stopped Xcode immediately after the first crash.
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!
During screen sharing an Apple engineer figured out it was because:
FRAMEWORK_SEARCH_PATHS
was set as../../Carthage
. Xcode is fine with it, but SourceKit wants$(PROJECT_DIR)../../Carthage
or absolute paths.