yx_speech_to_text_flutter/run_ios_app.sh

32 lines
622 B
Bash

#!/bin/bash
# iOS 应用运行脚本 - 解决 CocoaPods 环境问题
echo "🚀 启动 YX ASR iOS 应用..."
# 1. 清理环境
echo "🧹 清理构建环境..."
flutter clean
# 2. 获取依赖
echo "📦 获取 Flutter 依赖..."
flutter pub get
# 3. 手动安装 iOS 依赖
echo "🍎 手动安装 iOS 依赖..."
cd ios
unset GEM_PATH
unset GEM_HOME
/opt/homebrew/bin/pod install
cd ..
# 4. 构建 iOS 应用
echo "🔨 构建 iOS 应用..."
flutter build ios --debug --no-codesign
# 5. 运行应用
echo "📱 启动应用..."
flutter run -d "00008101-0011384A0C93001E" --debug
echo "🎯 应用启动完成!"