Skip to content
PiinfraMobile

Boot and run iOS + watchOS TwoFac app on paired simulators

Session from pi-coding-sessions on Hugging Face by championswimmer · MIT · condensed by Coders Talk

2msession
0interventions
GOAL

Boot the paired iPhone 16/Apple Watch iOS simulators and build/run the iOS and watchOS apps onto them.

  1. Prompt · +0
    Run the iOS and watchOS simulators for iPhone 16 w Watch pairing, then build and run both apps onto them
  2. Agent did · +0m
    Read skill docs for simulators/emulators, gradle build, and iosApp AGENTS.md to learn conventions and preferred simulator names
  3. Agent did · +0m
    Listed available iOS/watchOS simulators and device pairs to find the correct 'iPhone 16 w Watch' / 'Watch 10 w Phone' pairing
  4. Fail · +0m
    xcodebuild -list against the workspace failed with an error
  5. Agent did · +0m
    Switched to querying the .xcodeproj directly, inspected project.pbxproj and Config.xcconfig to confirm bundle identifiers and build scheme setup for the app and watch target
  6. Agent did · +1m
    Booted the phone and watch simulators via xcrun simctl and monitored boot status until both were ready
  7. Agent did · +1m
    Ran xcodebuild for the iosApp scheme against the booted iPhone simulator destination, building both iOS and watch targets
  8. Agent did · +2m
    Installed and launched the built app bundles on the iPhone and watch simulators using their bundle identifiers
  9. Outcome · +2m
    Both simulators booted and paired (connected); iOS app launched with PID 69471, watchOS companion app launched with PID 69503
VERDICT

Next time I'd point the agent straight at the .xcodeproj instead of the .xcworkspace, since the workspace-based xcodebuild -list call just errored out and wasted a step. Once it switched to querying the project file and pbxproj directly to confirm bundle IDs, everything else went smoothly through booting, building, and launching both apps. The skill docs I'd already written for simulator naming and gradle/xcodebuild commands clearly did most of the work here.

I tried this · 0

Discussion · 0

How Builds work