Enhanced simulator auto-detection for better reliability:
Device ID Support:
- Extracts both device name and UUID from simulator list
- Uses device ID (UUID) for xcodebuild destination when available
- More reliable than device name matching
- Falls back to device name if ID not available
Detection Improvements:
- Better parsing of simulator list output
- Handles edge cases where device name might not match exactly
- Logs both device name and ID for debugging
Fixes:
- Device not found: Using UUID ensures exact device matching
- Auto-detection: More robust extraction of device information
- Build reliability: Device ID is more reliable than name matching
Result: Script should now correctly auto-detect and use available iPhone simulators