con un clic
con un clic
Build an iPlug2 plugin project using CMake (Ninja or Xcode generator)
Build an iPlug2 plugin project for different formats and platforms (macOS, iOS, Windows)
Create a new iPlug2 plugin project by duplicating TemplateProject in the iPlug2OOS repository
| name | run-ios-simulator |
| description | Build and run an iPlug2 iOS app in the iOS Simulator |
Use this skill when the user wants to run an iPlug2 iOS project in the iOS Simulator.
Identify the project:
.xcworkspace files in the repo rootCheck available simulators and get UDID:
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:
xcrun simctl list devices available -j | jq -r '.devices[] | .[] | select(.name=="[DeviceName]") | .udid'
Build for Simulator:
xcodebuild -workspace [Project]/[Project].xcworkspace \
-scheme "iOS-APP with AUv3" \
-configuration Debug \
-destination 'platform=iOS Simulator,name=[DeviceName]' \
build
Find the built app:
find ~/Library/Developer/Xcode/DerivedData -name "[Project].app" -path "*Debug-iphonesimulator*" -type d 2>/dev/null | head -1
Boot simulator and install (use UDID, not "booted"):
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.
Launch the app (use UDID):
# Get bundle ID from Info.plist
/usr/libexec/PlistBuddy -c "Print :CFBundleIdentifier" "[path/to/Project.app]/Info.plist"
xcrun simctl launch [UDID] [bundle.identifier]
bootedxcrun simctl list devices available to see all device optionsjq is not installed, extract UDID manually from xcrun simctl list devices available outputFor TemplateProject on iPhone 17 Pro:
# 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