From 35ce409f4e5dac8535fcf41e0ffdd00e73d61336 Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Fri, 16 Jan 2026 10:21:44 -0600 Subject: [PATCH] Docs Testing Summary: - Docs: Testing Stats: - 1 file changed, 11 insertions(+) --- Documentation/Testing.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Documentation/Testing.md b/Documentation/Testing.md index 96b7192..65e86ab 100644 --- a/Documentation/Testing.md +++ b/Documentation/Testing.md @@ -32,6 +32,17 @@ Run all tests from the package root: swift test ``` +### Xcode Command Line +For packages that use platform-specific features (like `WatchConnectivity`), use `xcodebuild`: + +```bash +# Run on an available simulator (e.g., iPhone 16) +xcodebuild test -scheme LocalData -destination 'platform=iOS Simulator,name=iPhone 16' + +# Or using the specific device ID +xcodebuild test -scheme LocalData -destination 'id=4BF0FAE0-8FC1-4E19-89F4-2EDF12A28847' +``` + ### Xcode Test Plans For granular control (enabling/disabling specific tests or trying different configurations), use **Xcode Test Plans**: