Testing XCTest and XCUITest: iOS Testing with Swift and Xcode Apple's built-in testing framework is XCTest. It handles both unit tests and UI tests — and since Xcode 15, the tooling around it has never been better.