XCUIApplication, adding self-healing and AI commands to your native iOS tests.
Installation
Add thegptd_swift package to your Xcode project’s UI testing target via Swift Package Manager:
- In Xcode, go to your project settings
- Select your UI test target
- Click Add Dependencies
- Enter the package URL:
https://github.com/MobileBoostHQ/gptd-swift
Configuration
Native XCUITest
Import the package and initializeGptDriver in your test’s setUp method:
Caching
To optimize execution time, enable caching so AI is only used when the test definition or app changes.
Set caching in the constructor:

