Xcode11 cannot inspect local variables

Hi,


I'm trying to debug an Swift 4.2 executable on an device with iOS 13.1 with Xcode 11.2.1.


I`m hitting an local breakpoint and the try to *po* the local variable.

It is shown on the left variable pane (without an value) and the name gets completed in the debugger console with tab.

However I get the error message


po assetsByIdentifier
error: <EXPR>:3:1: error: use of unresolved identifier 'assetsByIdentifier'
assetsByIdentifier
^~~~~~~~~~~~~~~~~~


What can I check / do?

Replies

Do you run on simulator or on device (I understand on device).


Anyway, I did a rapid test with:

XCode 11.2 beta2

simulator with iOS 13.2

Swift 5 code


That works well.