Is Xcode (Version 12.0 (12A7209)) brogen? (Another bug?)

Code Block
let dateFormatter = DateFormatter()
dateFormatter.dateFormat = "yyyy-MM-dd HH:mm:ss"
let date = dateFormatter.date(from: "2019-01-01 00:00:00");
assert(date != nil)

  • date is nil

  • The assertion assert(date != nil) does not fail

date is nil

How have you checked it? Using print function?
If you have checked it only in the Debug area of Xcode, yes, Xcode has a bug in showing some structs in the Debug area.

Please show more details.

Thank you for your attention/.

I checked it in the debugger
Looks like that is where the bug is. Actually the dateFormatter function worked as expected, but the debugger watch window (and the print function) said date was nil.

Have I got some sort of bleeding edge version of Xcode? This is not the first bug I have found. I need Xcode 12 for LazyVStack. Thi sXcode I am running is from a xip file my boss gave me.


Unfortunately, none of the Xcode versions are bug-free.

You can send a feedback to Apple, and wait for the issues to be fixed.
Unfortunately again, this bug is kept unfixed for years.

Your bug report may be classified as duplicate, but some Apple's engineer says the number affects.
Anyway, it is the Feedback Assistant that tells Apple Xcode has some bugs.
Golly. Thank you.
I am new to Apple development. Been using Free Software for years and years. So I have gotten used to a better quality/price ratio!
I will report it....
Is Xcode (Version 12.0 (12A7209)) brogen? (Another bug?)
 
 
Q