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
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