Mobile: installApp sometime fails

Hi All,

We are uninstalling and intsalling the app in our batch run but sometime our installation fails with below error.

Can anyone suggest what could be the reason?

Thanks in Advance.

[debug] [W3C (5e4c5cc3)] Calling AppiumDriver.execute() with args: [“mobile: installApp”,[{“app”:"/Users/a212805796/Documents/IPA/CSipa"}],“5e4c5cc3-fe61-4eae-9e2c-1fd080d69655”]

[debug] [XCUITest] Executing command ‘execute’

[BaseDriver] Using local app ‘/Users/a2128/Documents/IPA/CS.ipa’

[BaseDriver] Will reuse previously cached application at ‘/var/folders/wv/67hy30kj2ngf3p9mr8300ddr0000gn/T/2022115-2539-1u89ore.k7gm/’

[XCUITest] Installing ‘/var/folders/wv/67hy30kj2ngf3p9mr8300ddr0000gn/T/2022115-2539-1u89ore.k7gm/CS Insights’ to the real device with UDID ‘00008020-00150C5202WRWER’

[debug] [XCUITest] Using ‘serial’ app deployment strategy. You could change it by providing another value to the ‘appInstallStrategy’ capability

ERR! Support Plist file doesn’t exist: ‘/var/folders/wv/67hy30kj2ngf3p9mr8300ddr0000gn/T/2022115-2539-1u89ore.k7gm/’

[XCUITest] Error installing app ‘/var/folders/wv/67hy30kj2ngf3p9mr8300ddr0000gn/T/2022115-2539-1u89ore.k7gm/’: Could not extract Info.plist from ‘’: Plist file doesn’t exist: ‘/var/folders/wv/67hy30kj2ngf3p9mr8300ddr0000gn/T/2022115-2539-1u89ore.k7gm/’

[XCUITest] Falling back to ‘ios-deploy’ usage

[Xcode] t = 28487.23s Get all elements bound by accessibility element for: Elements matching predicate ‘elementType IN {7, 5, 46}’


[Xcode] t = 28487.23s Requesting snapshot of accessibility hierarchy for app with pid 62


[Xcode] t = 28487.36s Find: Descendants matching type Any


[Xcode] t = 28487.36s Find: Elements matching predicate ‘elementType IN {7, 5, 46}’


[debug] [W3C (5e4c5cc3)] Encountered internal error running command: Error: Could not install ‘/var/folders/wv/67hy30kj2ngf3p9mr8300ddr0000gn/T/2022115-2539-1u89ore.k7gm/’:

[debug] [W3C (5e4c5cc3)] - Could not extract Info.plist from ‘’: Plist file doesn’t exist: ‘/var/folders/wv/67hy30kj2ngf3p9mr8300ddr0000gn/T/2022115-2539-1u89ore.k7gm/’

[debug] [W3C (5e4c5cc3)] - 2022-12-06 04:11:26.738 ios-deploy[27003:397900] [ !! ] Error 0xe8000051: Could not inspect the application package. AMDeviceSecureInstallApplication(0, device, url, options, install_callback, 0)

[debug] [W3C (5e4c5cc3)]

[debug] [W3C (5e4c5cc3)] at IOSDeploy.install (/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/lib/ios-deploy.js:88:17)

[debug] [W3C (5e4c5cc3)] at IOSDeploy.installApp (/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/lib/ios-deploy.js:130:12)

[debug] [W3C (5e4c5cc3)] at XCUITestDriver.mobileInstallApp (/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/lib/commands/app-management.js:28:3)

[debug] [W3C (5e4c5cc3)] at XCUITestDriver.executeMobile (/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/lib/commands/execute.js:158:10)

[debug] [W3C (5e4c5cc3)] at XCUITestDriver.execute (/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/lib/commands/execute.js:32:12)

[HTTP] <-- POST /wd/hub/session/5e4c5cc3-fe61-4eae-9e2c-1fd080d69655/execute/sync 500 1838 ms - 1531


Can you provide more information?
Are you trying to run on real device? What’s the appium client you are using? Did it work before?
What’s the instruction you are following? Can you provide image capture?

I am running on real ios Device
Yes it is not failing everytime only certain time it fails. As in the same batch exeution we uinstalling application multiple time
We are using Appium 1.22.3
Can you please elabrote what sort of instruction and screen can I provide?
I am using mobile : installApp command to install app again after uninstalling it using mobile: removeApp command

It might be a bug, but it’s not going to be checked/fixed as Appium 1 is not supported anymore. Consider switching to Appium 2.

will my existing script work or do I need to make any changes if I switch to Appium 2

This depends on your script: