Crash in Xcode code review

Crash in Xcode code review

When you enable Enable Code Review in the upper right corner of Xcode, Xcode crashes or loads infinitely.

I don't think this problem existed in previous versions of Xcode, but it is very serious in the current version 15.4.

It doesn't crash in all parts of Code Review, but Xcode crashes or loads infinitely in certain parts.

I really hope this will be fixed in the next Xcode version.

It happens so often that I'm going crazy. Seriously

  • Especially if there are many or wide changes in the swift file, the crash occurs in that part.
Answered by Developer Tools Engineer in 791629022

To help us better understand the issue, it would be greatly appreciated if you could provide us with the crash report files. You can find those in the Console app, under the "Crash Reports" tab in the sidebar.

Please use the Feedback Assistant app to file a problem report with the crash files.

If possible, it would also be very helpful if you could share the exact source file that causes the crash. Please see the instructions below on how to generate the respective versions of the file for inspection:

From the root directory of your project, and assuming the source file that causes the crash is located in (for example) "Source/MyClass.swift", run on a terminal:

cp "Source/MyClass.swift" ~/Desktop/source_modified.txt
git show :"Source/MyClass.swift" > ~/Desktop/source_staged.txt
git show HEAD:"Source/MyClass.swift" > ~/Desktop/source_original.txt

Then include the source_modified.txt, source_staged.txt, and source_original.txt files into your problem report.

Once you have submitted the report, feel free to paste the feedback number here.

Thank you for your help!

To help us better understand the issue, it would be greatly appreciated if you could provide us with the crash report files. You can find those in the Console app, under the "Crash Reports" tab in the sidebar.

Please use the Feedback Assistant app to file a problem report with the crash files.

If possible, it would also be very helpful if you could share the exact source file that causes the crash. Please see the instructions below on how to generate the respective versions of the file for inspection:

From the root directory of your project, and assuming the source file that causes the crash is located in (for example) "Source/MyClass.swift", run on a terminal:

cp "Source/MyClass.swift" ~/Desktop/source_modified.txt
git show :"Source/MyClass.swift" > ~/Desktop/source_staged.txt
git show HEAD:"Source/MyClass.swift" > ~/Desktop/source_original.txt

Then include the source_modified.txt, source_staged.txt, and source_original.txt files into your problem report.

Once you have submitted the report, feel free to paste the feedback number here.

Thank you for your help!

Crash in Xcode code review
 
 
Q