Build and run the app. Default: booted simulator. Use `device` for physical device. Use `--delete` for clean install. Specify simulator name to target a specific simulator (e.g. `iPhone 16 Pro`).
Build and run the app on simulator (default) or physical device.
Arguments: $ARGUMENTS
Set these per project in .claude/skills/run/SKILL.md or CLAUDE.md:
Calorie Counter.xcworkspaceCalorie Countercom.fatsecret.caloriecounter$ARGUMENTS contains device → device mode$ARGUMENTS contains a simulator name (e.g. iPhone 16 Pro, iPhone Air, iPad Pro) → use that specific simulator$ARGUMENTS, find its UDID: xcrun simctl list devices available | grep "<name>" and boot it if not already booted: xcrun simctl boot <UDID>; open -a Simulatorxcrun simctl list devices booted | grep -i "iphone\|ipad"xcrun simctl list devices available | grep -i iphone then xcrun simctl boot <UDID>; open -a Simulator$SIM_ID$ARGUMENTS contains --delete: xcrun simctl uninstall $SIM_ID com.fatsecret.caloriecounter 2>/dev/nullxcodebuild -workspace "Calorie Counter.xcworkspace" -scheme "Calorie Counter" -destination "id=$SIM_ID". Check for BUILD SUCCEEDED.xcodebuild -workspace "Calorie Counter.xcworkspace" -scheme "Calorie Counter" -destination "id=$SIM_ID" -showBuildSettings | grep -m1 "BUILT_PRODUCTS_DIR" then append /Calorie Counter.appxcrun simctl install $SIM_ID "<APP_PATH>"xcrun simctl launch $SIM_ID com.fatsecret.caloriecounterxcrun devicectl list devices 2>/dev/null | grep -i connected$DEVICE_ID$ARGUMENTS contains --delete: xcrun devicectl device uninstall app --device $DEVICE_ID com.fatsecret.caloriecounter 2>/dev/nullxcodebuild -workspace "Calorie Counter.xcworkspace" -scheme "Calorie Counter" -destination "id=$DEVICE_ID" -allowProvisioningUpdates. Check for BUILD SUCCEEDED.xcodebuild -workspace "Calorie Counter.xcworkspace" -scheme "Calorie Counter" -destination "id=$DEVICE_ID" -showBuildSettings | grep -m1 "BUILT_PRODUCTS_DIR" then append /Calorie Counter.appxcrun devicectl device install app --device $DEVICE_ID "<APP_PATH>"xcrun devicectl device process launch --device $DEVICE_ID com.fatsecret.caloriecounter