Fixed build script to automatically detect and use available simulators: Simulator Detection: - Auto-detects first available iPhone simulator if none specified - Falls back to generic destination if no iPhones found - Lists available devices in error messages Build Destination: - Uses specific device name when available - Falls back to generic destination for compatibility - Handles both named devices and generic destinations Fixes: - No longer hardcodes 'iPhone 15 Pro' (which may not exist) - Works with any available iPhone simulator - Better error messages showing available devices Usage: - ./scripts/build-and-deploy.sh # Auto-detect - ./scripts/build-and-deploy.sh 'iPhone 17' # Specify device Result: Build script now works with any available simulator
5.5 KiB
Executable File
5.5 KiB
Executable File