# Can we get consistent assertion behavior in the latest release Swift compiler across host platforms?

**URL:** <https://forums.swift.org/t/can-we-get-consistent-assertion-behavior-in-the-latest-release-swift-compiler-across-host-platforms/80545>\
**Category:** Compiler\
**Tags:** assertions\
**Created:** [June 18, 2025, 7:25pm UTC](https://forums.swift.org/t/can-we-get-consistent-assertion-behavior-in-the-latest-release-swift-compiler-across-host-platforms/80545 "2025-06-18T19:25:44Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![woody\_melling](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/woody_melling/32/36190_2.png) [@woody\_melling](https://forums.swift.org/u/woody_melling)\
**Post date:** [June 27, 2025, 12:20am UTC](https://forums.swift.org/t/can-we-get-consistent-assertion-behavior-in-the-latest-release-swift-compiler-across-host-platforms/80545/5 "2025-06-27T00:20:30Z")

</div>

> Unfortunately, programs that only compile with a no-asserts toolchain aren’t quite perfectly valid. At the very least it means you’re exercising some compiler code path that’s not covered by tests, so it could regress in a future release. We’ve also seen bugs where an input program that trips an assertion then silently miscompiles without asserts.

So does that mean that the Xcode toolchain has these assertions enabled, but generates code in a more correct way? Or does the xcode toolchain disable these assertions, potentially allowing through code that can silently miscompile?

If thats the case should people be concerned about using these features in production systems?

---

_[View the full topic](https://forums.swift.org/t/can-we-get-consistent-assertion-behavior-in-the-latest-release-swift-compiler-across-host-platforms/80545)._
