You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
xtool uninstall exits 0 when the uninstall fails #354
do{tryawaitinstallProxy.uninstall(bundleID:bundleID,progress:{_in})}catch{print("Failed: \(error)")return // process exits with status 0
}print("Success!")
Compare xtool install (Sources/XToolSupport/InstallCommand.swift:39-44), xtool dev run (DevCommand.swift:271-276) and xtool dev build --sign (DevCommand.swift:172-177), which all print the error and then throw ExitCode.failure.
The fix is to throw ExitCode.failure in the catch instead of return, matching the other device commands.
Impact: any automation that chains xtool uninstall && xtool install … or gates on the exit code gets success even when the app is still installed (wrong bundle ID given, device connection dropped mid-uninstall, lockdown error, etc.).
Activity