1
0
mirror of synced 2025-11-06 04:20:50 +08:00
Files
cook/scripts/ios.sh
2025-10-01 17:13:01 +08:00

11 lines
559 B
Bash

#!/bin/bash
LIP=$(ipconfig getifaddr en0)
echo "🍦 Starting local development to ios device - ensure local dev server is running already"
echo "🏗️ Type checking and building for development..."
pnpm run build:dev
echo "🔃 Capacitor installation, podfile installation, sync and copy to app distribution folders..."
npx @ionic/cli capacitor sync ios --no-build
echo "🏃 Select an iOS device to run the build at local ip address ${LIP} on..."
eval "npx @ionic/cli capacitor run ios --livereload-url=http://${LIP}:3000 --external --mode development"