IOS how to handle update alert of app

if i handle accept all permissions through capabilities but this make accept update alert of app
but i need to cancel update alert of app

when i tried to handle it manually , the appium is pressed accept update automatically very fast before cancel it

is there any idea how to handle it

This may help:

https://appiumpro.com/editions/31-automating-custom-alert-buttons-on-ios

i can not cancel the update alert before appium accept it

it is very fast

You are probably going to have to start handling the alerts in your code. There isn’t any way to specify which ones to accept and which to dismiss in capabilities.