question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

installApp command does not upgrade application on ios devices

See original GitHub issue

The problem

i have ci cd pipeline where i generate new ipa and after that i launch automation test on it . when the test begin on the logs it show App ‘com.streamwide.totrInHouseDev’ is already installed. No need to reinstall.

Environment

  • Appium version (or git revision) that exhibits the issue: 1.22.0
  • Last Appium version that did not exhibit the issue (if applicable):
  • Desktop OS/version used to run Appium: BIG SURE 11.4
  • Node.js version (unless using Appium.app|exe):v14.5.0
  • Npm or Yarn package manager:6.14.5
  • Mobile platform/version under test: iphone SE 2020
  • Real device or emulator/simulator: real device
  • Appium CLI or Appium.app|exe: cli

Details

on my capabilities : i put no reset : true and full reset false since i dont want to uninstall app i want to upgrade it directly to the newer version i do the same test on Android it works , the apk is upgraded automatically but not with ipa and .app

Code To Reproduce Issue [ Good To Have ]

Please remember that with sample code it’s easier to reproduce the bug and it’s much faster to fix it.

Please git clone https://github.com/appium/appium and from the sample-code directory, use one of your favourite languages and sample apps to reproduce the issue.

In case a similar scenario is missing in sample-code, please submit a PR with one of the sample apps provided.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:14 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
KazuCocoacommented, Oct 19, 2021

oh, i see. I’d second I’d say the fact the app gets installed on Android is a bug.

Btw, as https://github.com/appium/appium/issues/15971#issuecomment-946569910 , it would be great way to upgrade explicitly in the test scenario after creating a session. Nowadays, appium can establish a session without app and bundleid/appPackage, so I think it is easier to achieve than before.

1reaction
mykola-mokhnachcommented, Oct 19, 2021

I’d rather avoid using implicit Appium behaviours then and make the upgrade process more explicit. Check https://appiumpro.com/editions/9-testing-android-app-upgrades and https://appiumpro.com/editions/6-testing-ios-app-upgrades for more details

Read more comments on GitHub >

github_iconTop Results From Across the Web

installApp command does not upgrade application on device
Hi, I am trying to test an application upgrade (install a new version while the old one still exists on the device). The...
Read more >
InstallApplicationCommand.Command - Apple Developer
A dictionary that contains the initial attributes of the app, if you choose to provide it. This value is available in iOS 7...
Read more >
Unable to install <app> You must purchase this app to install it
So the simplest fix i've found is to: 1 - Exclude the problematic device from the Configuration Profile with the HSL payload. 2...
Read more >
App fails to install on iOS device running work hub with MDM ...
This issue occurs when the iOS device gets stuck in a state where the server has issued an install app via MDM command,...
Read more >
Xcode 11.2 - Unable to install App file to device?
Double checked that 'Scheme' has release checked under the 'Run' tab · Confirmed that correct provisioning profile is selected · Removing the app...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found