what's new in swift testing in xcode 26 iOS 26
Asked on 2025-07-10
1 search
In Xcode 26 and iOS 26, there are several new features and improvements related to Swift testing:
-
UI Testing Enhancements: Xcode's UI testing has received a significant upgrade with a new code generation system for UI Automation Recording. This allows for a more streamlined experience when creating UI tests. You can start a recording session directly from the editor, which helps in generating the necessary code for UI tests. Additionally, the Measure API has been expanded with an XCT Hitch metric to catch hitches in your app during testing, such as scrolling animation performance. What’s new in Xcode
-
Runtime API Checks: Xcode 26 introduces more runtime API checks in the Test Plan Configuration Editor. These checks can surface framework runtime issues and threading problems using the Thread Performance Checker, which helps ensure your code follows API best practices. What’s new in Xcode
-
Swift Testing Framework: A new testing framework called Swift Testing has been introduced. It is designed to be expressive, flexible, and scalable, taking advantage of modern Swift features like macros and concurrency. Swift Testing is cross-platform and developed as an open-source package, aiming to become the default testing solution in the Swift ecosystem. It supports traits for specifying information per test or suite and takes a different approach to parallelization by running in-process using Swift concurrency. Meet Swift Testing
-
Integration with Xcode: Swift Testing is integrated into major tools and IDEs, including Xcode, allowing for seamless testing experiences across different platforms. It supports parallel testing by default, enabling tests to run quickly and reliably in a concurrent environment. Go further with Swift Testing
These updates make testing in Swift and Xcode more efficient and powerful, providing developers with better tools to ensure code quality and performance.

What’s new in Xcode
Discover the latest productivity and performance advancements in Xcode 26. Learn how to leverage large language models in your development workflow. Explore editing and debugging enhancements, improved performance and testing tools, and Swift Build - the open-source build system engine used by Xcode.

Platforms State of the Union
Discover the newest advancements on Apple platforms.

What’s new in Swift
Join us for an update on Swift. We’ll briefly go through a history of Swift over the past decade, and show you how the community has grown through workgroups, expanded the package ecosystem, and increased platform support. We’ll introduce you to a new language mode that achieves data-race safety by default, and a language subset that lets you run Swift on highly constrained systems. We’ll also explore some language updates including noncopyable types, typed throws, and improved C++ interoperability.