iOS remove app not working

we’re using python opensdk with TestProject Agent v3.4.1
installing app on real iOS device works, but removing the app doesn’t…

after executing the tests we try to remove the app with

but the app is not removed from the device…

appium logs:

2022-04-07 14:03:53.829 [HTTP] → POST /session/db1ac83e-006a-4ced-83e3-73ba134113f7/appium/device/remove_app
2022-04-07 14:03:53.829 [HTTP] {“appId”:"<bundle_id>",“sessionId”:“db1ac83e-006a-4ced-83e3-73ba134113f7”}
2022-04-07 14:03:53.831 [debug] [W3C (db1ac83e)] Calling AppiumDriver.removeApp() with args: ["<bundle_id>",null,“db1ac83e-006a-4ced-83e3-73ba134113f7”,null,“db1ac83e-006a-4ced-83e3-73ba134113f7”]
2022-04-07 14:03:53.832 [debug] [XCUITest] Executing command ‘removeApp’
2022-04-07 14:03:53.832 [XCUITest] Uninstalling the application with bundle identifier ‘<bundle_id>’ from the real device with UDID ‘00008030-000D0D5E3E91402E’
2022-04-07 14:03:53.832 [XCUITest] Cannot remove ‘<bundle_id>’. Original error: this.opts.device.removeApp is not a function
2022-04-07 14:03:53.832 [debug] [W3C (db1ac83e)] Responding to client with driver.removeApp() result: false
2022-04-07 14:03:53.832 [HTTP] ← POST /session/db1ac83e-006a-4ced-83e3-73ba134113f7/appium/device/remove_app 200 1 ms - 15

Hi @krisko,
I added you to an open ticket regarding this issue.
Ticket number TP-17032
You will be notified once it’s resolved.

thanks @ran.ferdinaro
where can I see the current status of this ticket?

@krisko a work around for this is to use a different app ( i Personally use springboard (iOS launcher) then swipe to element of the app i want to uninstall, long press on it and click the delete options.
It’s not fast but obviously gets the job done

@krisko You can always contact us and ask for updates.
We will also update you once the ticket is resolved.

@tsalisbury You are correct, but as you said, it is slow and not a perfect solution.

@ran.ferdinaro ok thanks

@tsalisbury thanks for the workaround!

@krisko There is another workaround you can use:

  1. Upload the .IPA file to TestProject and use it as your app under test.
  2. Create an empty test with your app and device.
  3. Create a new job and insert your test in it.
  4. Set your job to reinstall the app before each execution.

You can use this example:

1 Like

Hi Krisko ,
how are you handling the part where you need to 'trust ’ for your app in order to run on real iOS device ?

@it.dishantrawat you can follow this tutorial:

The link is about how to setup iOS device,
my question is, if you are using any development build (NOT App Store), you will have to manually trust the application in order to open the app ,if yes ,how are you handling it from automation . If you are running Prod app ,then pls ignore the ques.