Declaring enum in extension will crash Xcode's LeakAgent

Originator:LiangMorr
Number:rdar://FB7642982 Date Originated:March 28, 2020
Status:Open Resolved:
Product:Xcode Product Version:11.4
Classification:Bug Reproducible:Yes
 
Please provide a descriptive title for your feedback:
Declaring enum in extension will crash Xcode's LeakAgent
Which area are you seeing an issue with?
Xcode
What type of feedback are you reporting?
Application Crash
Details
What version of Xcode are you using?
11.4
Description
Please describe the issue:
When source file contains enum that are declared in an extension. Xcode’s “Debug Memory Graph” tool will not work properly.
Please list the steps you took to reproduce the issue:
1. Create a sample macOS App project with XCode 11.4
2. Insert following code to a source file.
```
extension Data {
  enum MyError {}
}
```
3. Build and debug the project. Click "Debug Memory Graph" button in the debug toolbar.
4. LeakAgent will crash and an error alert showing "No reply dictionary received from LeakAgent request.".
What did you expect to happen?
The “Debug Memory Graph” tool should work and shows the memory graph.
What actually happened?
An alert dialog prompts and shows “No reply dictionary received from LeakAgent request.”

Comments

Experiencing similair behavior.

Filed FB7649434

By dfeinzimer at April 2, 2020, 6:37 p.m. (reply...)

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!