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.| Mode | Description |
|---|---|
NONE | No caching |
FULL_SCREEN | Cache hit only if the full screen matches a previous successful execution |
INTERACTION_REGION | Cache hit if the interaction region matches (recommended) |

