Skip to content

Handle iOS app launch failures after install#414

Open
mdub1na wants to merge 1 commit into
VKCOM:developfrom
mdub1na:codex/ios-handle-launch-after-install
Open

Handle iOS app launch failures after install#414
mdub1na wants to merge 1 commit into
VKCOM:developfrom
mdub1na:codex/ios-handle-launch-after-install

Conversation

@mdub1na

@mdub1na mdub1na commented May 31, 2026

Copy link
Copy Markdown

Summary

  • Parse the bundle id from idb install output before launching an iOS app
  • Avoid unhandled promise rejections when the best-effort launch fails
  • Send integer install progress values

Problem

After an iOS IPA was installed successfully, the install plugin attempted to auto-launch the app. The bundle id was parsed with a broad regular expression that could match the status word from idb install output instead of the actual bundle id.

For example, with install output like:

Installed: com.testing.app A13F6EBD-88D6-3254-8678-B5B61FD31120

the old parser could try to launch Installed instead of com.testing.app, leading to an error like:

Unhandled rejection Error: Command failed: idb launch Installed --udid=00008110-001454941A46801E

The same flow also sent fractional progress values, producing noisy warnings such as:

Somebody is sending non integer as progress: installing_app

Fix

Parse the bundle id explicitly from Installed: <bundleId> / Installed <bundleId> output, skip the launch if the bundle id cannot be detected, and catch launch failures so a failed post-install launch does not become an unhandled rejection. Progress updates are rounded before being sent.

Testing

  • npm run build

@mdub1na mdub1na requested a review from a team as a code owner May 31, 2026 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant