Crash static Date.<=infix on iOS 27.2 beta

I have a device with iOS 27.2 beta, and I am getting crashes when I do comparison between two Date objects in swift.

This doesn't happen on other devices : iOS 27.2 release, and other iOS versions, only on the device with beta version

Answered by DTS Engineer in 915640022
Written by ostafi1010 in 856370021

I have a device with iOS 27.2 beta …

Given that iOS 27.2 has been released, why not update the affected device to that version? This is a useful diagnostic for two reasons:

  • If the problem goes away, you can be reasonably confident that it was an issue with the beta.
  • If it doesn’t, you’ve ruled out the beta and can continue to investigate the underlying cause.

Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

I had to switch ot NSComparisonResult and compare from ObjectiveC to pass the crash. This happens anywhere in code I do Date comparisons

Written by ostafi1010 in 856370021

I have a device with iOS 27.2 beta …

Given that iOS 27.2 has been released, why not update the affected device to that version? This is a useful diagnostic for two reasons:

  • If the problem goes away, you can be reasonably confident that it was an issue with the beta.
  • If it doesn’t, you’ve ruled out the beta and can continue to investigate the underlying cause.

Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Will do , for sure. Wasn't there other reports like this? If not, then probably this is some unique case

Thanks

-- Ion

Written by ostafi1010 in 915651022

Wasn't there other reports like this?

It’s not something I remember seeing during the beta cycle, and beyond that it’s hard to tell without seeing a full crash report. While writing my previous reply I originally included a request for that, but then I reconsidered. IMO it only make sense to dig into this if it reproduces on a non-beta OS.

OTOH, if that does happen, so the second bullet in my previous reply, I would love to see a crash report. See Posting a Crash Report for advice on how to post one.

Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

I see various such crashes since 27.2 (actually, for one of our apps, all crashes are of this kind).

Examples attached
2026-11-11_15-09-10.3780_+0100-99f91d6bdb5ac32c41e8e81b1a3822ef356ec398.crash(14 KB)
2026-11-11_15-09-08.5996_+0100-90c6e4968230ee92365fe9cc3ca85c76612c306d.crash(20 KB)

Seems this comparison is where it crashes:

However: In case this means it is a beta version of 27.2, all the crashes I had a look at, were from a beta version:

Written by guogzuguzi in 916804022

all the crashes I had a look at, were from a beta version:

Right. The Beta release type is a dead giveaway, and the extra digit in the build number (the 5 in 24B5089g) confirms that.

Now somewhere on the forums I posted an explanation of how to read build numbers…

[much searching]

Ah, here it is.

Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Accepted Answer

Upgraded to iOS 27.2.1 - no more crash, thank god 🙏