0

During debugging I noticed that console was showing nil values for all the properties of an object when I used po command but it passed !=nil validation so I checked the Variables view and it showed that the properties were not actually nil but had some value

enter image description here

I saw a few questions which specified to check Optimization level in Build Settings but they were set to what was expected. I am using Xcode 11.5

user121095
  • 557
  • 1
  • 4
  • 16

1 Answers1

0

I think you are using closure as asynchronous to fetch the data. That is why you see nil and your values are not in scope in LLDB in debug mode.

Swift: Asynchronous callback

zeytin
  • 5,296
  • 4
  • 13
  • 37