CLAUDE.md - iOS App
This file provides guidance to Claude Code when working with the iOS companion app for VibeTunnel.Project Overview
The iOS app is a companion application to VibeTunnel that allows viewing and managing terminal sessions from iOS devices.Development Setup
- Open the project in Xcode:
- Select your development team in project settings
- Build and run on simulator or device
Architecture
- SwiftUI for the user interface
- WebSocket client for real-time terminal data
- Shared protocol definitions with macOS app
Key Files
VibeTunnelApp.swift
- Main app entry pointContentView.swift
- Primary UITerminalView.swift
- Terminal display componentWebSocketClient.swift
- Server communication
Building
Testing
Viewing Logs
Use the provided script to view iOS app logs with unredacted private data:Common Issues
Simulator Connection Issues
- Ensure the Mac app server is running
- Check that simulator can reach localhost:4020
- Verify no firewall blocking connections
Device Testing
- Device must be on same network as Mac
- Use Mac’s IP address instead of localhost
- Check network permissions in iOS settings