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
Click a segment to jump to that moment
2msession
0interventions
GOAL
Boot the paired iPhone 16/Apple Watch iOS simulators and build/run the iOS and watchOS apps onto them.
- +0Prompt · +0Run the iOS and watchOS simulators for iPhone 16 w Watch pairing, then build and run both apps onto them
- +0mAgent did · +0mRead skill docs for simulators/emulators, gradle build, and iosApp AGENTS.md to learn conventions and preferred simulator names
- +0mAgent did · +0mListed available iOS/watchOS simulators and device pairs to find the correct 'iPhone 16 w Watch' / 'Watch 10 w Phone' pairing
- +0mFail · +0mxcodebuild -list against the workspace failed with an error
- +0mAgent did · +0mSwitched 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
- +1mAgent did · +1mBooted the phone and watch simulators via xcrun simctl and monitored boot status until both were ready
- +1mAgent did · +1mRan xcodebuild for the iosApp scheme against the booted iPhone simulator destination, building both iOS and watch targets
- +2mAgent did · +2mInstalled and launched the built app bundles on the iPhone and watch simulators using their bundle identifiers
- +2mOutcome · +2mBoth 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.