← Back to list

ios-build-deploy
by Skrufy
⭐ 0🍴 0📅 Jan 13, 2026
SKILL.md
name: ios-build-deploy description: Build and deploy iOS app to simulator or device. Use when testing iOS changes, debugging on simulator, or running the app after code changes. Handles Xcode builds, app installation, and launching. allowed-tools: Read, Bash
iOS Build & Deploy
Purpose
Quickly build the iOS app and deploy to simulator or connected device for testing.
Prerequisites Check
Before building, verify environment:
# List available simulators
xcrun simctl list devices available
# Check if Xcode command line tools installed
xcode-select -p
# Check connected physical devices
xcrun xctrace list devices
Build Commands
Quick Compile (Check for Errors)
cd apps/ios/ConstructionPro
xcodebuild -scheme ConstructionPro -configuration Debug -destination 'platform=iOS Simulator,name=iPhone 15' build 2>&1 | head -50
Build for Simulator
cd apps/ios/ConstructionPro
xcodebuild -scheme ConstructionPro \
-configuration Debug \
-destination 'platform=iOS Simulator,name=iPhone 15' \
-derivedDataPath build \
build
Build for Device
cd apps/ios/ConstructionPro
xcodebuild -scheme ConstructionPro \
-configuration Debug \
-destination 'generic/platform=iOS' \
build
Deploy to Simulator
Boot Simulator
# List available simulators
xcrun simctl list devices available | grep iPhone
# Boot specific simulator
xcrun simctl boot "iPhone 15"
# Open Simulator app
open -a Simulator
Install App on Simulator
# Find the built app
APP_PATH=$(find apps/ios/ConstructionPro/build -name "*.app" -type d | head -1)
# Install to booted simulator
xcrun simctl install booted "$APP_PATH"
Launch App
xcrun simctl launch booted com.constructionpro.app
Combined: Build, Install, Launch
cd apps/ios/ConstructionPro && \
xcodebuild -scheme ConstructionPro \
-configuration Debug \
-destination 'platform=iOS Simulator,name=iPhone 15' \
-derivedDataPath build \
build && \
xcrun simctl install booted build/Build/Products/Debug-iphonesimulator/ConstructionPro.app && \
xcrun simctl launch booted com.constructionpro.app
Debugging
View Logs (Filtered to App)
xcrun simctl spawn booted log stream --predicate 'subsystem == "com.constructionpro.app"'
View Recent Console Output
xcrun simctl spawn booted log show --last 5m --predicate 'subsystem == "com.constructionpro.app"'
Take Simulator Screenshot
xcrun simctl io booted screenshot screenshot.png
Common Issues
Simulator Not Found
# Reset simulator list
xcrun simctl shutdown all
xcrun simctl erase all
# Create new simulator if needed
xcrun simctl create "iPhone 15" "com.apple.CoreSimulator.SimDeviceType.iPhone-15"
Build Cache Issues
cd apps/ios/ConstructionPro
rm -rf build
rm -rf ~/Library/Developer/Xcode/DerivedData/ConstructionPro-*
xcodebuild clean -scheme ConstructionPro
Code Signing Issues (Device Only)
# Check signing identity
security find-identity -v -p codesigning
# Build with automatic signing
xcodebuild -scheme ConstructionPro \
-configuration Debug \
-allowProvisioningUpdates \
build
Swift Compile Errors
Check specific errors:
xcodebuild -scheme ConstructionPro build 2>&1 | grep -A 3 "error:"
Quick Reference
| Task | Command |
|---|---|
| List simulators | xcrun simctl list devices available |
| Boot simulator | xcrun simctl boot "iPhone 15" |
| Build for sim | xcodebuild -scheme ConstructionPro -destination 'platform=iOS Simulator,name=iPhone 15' build |
| Install app | xcrun simctl install booted <app_path> |
| Launch app | xcrun simctl launch booted com.constructionpro.app |
| View logs | xcrun simctl spawn booted log stream |
| Clean build | xcodebuild clean -scheme ConstructionPro |
Project Paths
- Root:
apps/ios/ConstructionPro/ - Source:
apps/ios/ConstructionPro/ConstructionPro/ - Models:
apps/ios/ConstructionPro/ConstructionPro/Models/ - Views:
apps/ios/ConstructionPro/ConstructionPro/Views/ - Services:
apps/ios/ConstructionPro/ConstructionPro/Services/ - Build Output:
apps/ios/ConstructionPro/build/
Score
Total Score
50/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
Reviews
💬
Reviews coming soon