LLDB fails to 'po' any object when using Xcode 12 beta if the minimum deployment target is less than iOS 13

Originator:serieuxchat
Number:rdar://FB8115536 Date Originated:2020-07-23
Status:Open Resolved:
Product:Xcode Product Version:12 beta 3
Classification:Incorrect/Unexpected Behavior Reproducible:Always
 
Please describe the issue:

I am using Xcode 12 beta 3 (12A8169g) on macOS Catalina (10.15.6)

LLDB fails to 'po' any object when using Xcode 12 beta if the minimum deployment target is less than iOS 13 (e.g. 12.4)

Please list the steps you took to reproduce the issue:

- Create a new iOS app project or use the attached example project.
- Add an integer variable to the function application(_ : didFinishLaunchingWithOptions:), e.g. var testVar = 15
- Put a breakpoint on the line with 'return true' and run the app on the iPhone 11 Pro (14.0) Simulator
- When stopped, try to 'po testVar' on LLDB console.

What did you expect to happen?

I expected the following to be printed:

Printing description of testVar:
15

What actually happened?

The following is printed:

LLDBProblem[6590:398863] libMobileGestalt MobileGestaltCache.c:38: No persisted cache on this platform.
Cannot create Swift scratch context (couldn't load the Swift stdlib)

Trying to 'po testVar' prints nothing.
Right-clicking on testVar and choosing "Print Description of testVar" produces:

Printing description of testVar:
expression produced no result


Running the app on a different Simulator does not fix the problem.

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!