vibetunnel/ios/run-tests-xcode.sh
Peter Steinberger be1112d7e9 fix: properly configure iOS tests to run on iOS simulators
- Add VibeTunnelTests target to Xcode project
- Configure test target for iOS 18.0 deployment
- Enable Swift Testing framework in build settings
- Create proper test scheme for running tests
- Add helper script for running tests via xcodebuild

Tests should now be run through Xcode (Cmd+U) on iOS simulators,
not via swift test which incorrectly runs them on macOS.
2025-06-22 07:42:59 +02:00

18 lines
No EOL
372 B
Bash
Executable file

#!/bin/bash
# Run iOS tests using Xcode
# This properly runs the tests in an iOS environment
set -e
echo "Running iOS tests using Xcode..."
# Run tests for iOS simulator
xcodebuild test \
-project VibeTunnel.xcodeproj \
-scheme VibeTunnel \
-destination 'platform=iOS Simulator,name=iPhone 15,OS=18.0' \
-quiet \
| xcpretty
echo "Tests completed!"