소스 정보
- 저장소
- iPlug2/iPlug2OOS
- 최근 소스 활동
- 2025년 12월 3일 21:15
- 감지된 SKILL.md 언어
- 영어
- 스타
- 155
- 포크
- 38
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
SKILL.md 표시 중
SKILL.md
소스 지침 · 읽기 전용 미리보기- name
- run-ios-simulator
- description
- Build and run an iPlug2 iOS app in the iOS Simulator
# Run iOS App in Simulator
Use this skill when the user wants to run an iPlug2 iOS project in the iOS Simulator.
## Workflow
1. **Identify the project:**
- If not specified, look for `.xcworkspace` files in the repo root
- Ask user to choose if multiple projects exist
2. **Check available simulators and get UDID:**
```bash
xcrun simctl list devices available | grep -E "iPhone|iPad"
```
Extract the UDID from the output (the value in parentheses, e.g., `9E866BC3-9E64-4608-B4D0-D20F1DE3E980`)
Or programmatically:
```bash
xcrun simctl list devices available -j | jq -r '.devices[] | .[] | select(.name=="[DeviceName]") | .udid'
```
3. **Build for Simulator:**
```bash
xcodebuild -workspace [Project]/[Project].xcworkspace \
-scheme "iOS-APP with AUv3" \
-configuration Debug \
-destination 'platform=iOS Simulator,name=[DeviceName]' \
build
```
4. **Find the built app:**
```bash
find ~/Library/Developer/Xcode/DerivedData -name "[Project].app" -path "*Debug-iphonesimulator*" -type d 2>/dev/null | head -1
```
5. **Boot simulator and install (use UDID, not "booted"):**
```bash
open -a Simulator
xcrun simctl boot [UDID] 2>/dev/null || true
xcrun simctl install [UDID] "[path/to/Project.app]"
```
Using the UDID ensures the correct simulator is targeted even when multiple are running.
6. **Launch the app (use UDID):**
```bash
# Get bundle ID from Info.plist
/usr/libexec/PlistBuddy -c "Print :CFBundleIdentifier" "[path/to/Project.app]/Info.plist"
xcrun simctl launch [UDID] [bundle.identifier]
```
## Notes
- **No code signing required** for Simulator builds
- **Always use UDID** to target a specific simulator, not `booted`
- Default device: iPhone 17 Pro (or latest available)
- The AUv3 plugin is embedded in the app and will be available to host apps in the Simulator
- Use `xcrun simctl list devices available` to see all device options
- If `jq` is not installed, extract UDID manually from `xcrun simctl list devices available` output
## Example
For TemplateProject on iPhone 17 Pro:
```bash
# Get the UDID for iPhone 17 Pro
UDID=$(xcrun simctl list devices available -j | jq -r '.devices[] | .[] | select(.name=="iPhone 17 Pro") | .udid')
# Build
xcodebuild -workspace TemplateProject/TemplateProject.xcworkspace \
-scheme "iOS-APP with AUv3" -configuration Debug \
-destination "platform=iOS Simulator,id=$UDID" build
# Install and run using UDID
open -a Simulator
xcrun simctl boot $UDID 2>/dev/null || true
xcrun simctl install $UDID ~/Library/Developer/Xcode/DerivedData/TemplateProject-*/Build/Products/Debug-iphonesimulator/TemplateProject.app
xcrun simctl launch $UDID com.AcmeInc.TemplateProject
```
GitHub에서 보기