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.

Failiing to install iOS app on real device on iOS 13.3 with WDA and appium beta

See original GitHub issue

The problem

I try to install an app (developed and distributed to TestFlight by third party and I am testing their app) on my physical device, but getting an error which is published in my gist (link is below). I configured WDA Runner as per instructions in documentation and signed it with Personal Team. When the app is installed manually on the iPhone, I can open it and test it with no issues. The error occurs only when the WDA uninstalls the app and tries to install it back.

Also, the path mentioned in the logs doesn’t exist on my system and it is pointing on .app file, not .ipa file which I give in caps: /private/var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.HuY2pp/extracted/Open Viewer_Example.app

“installd” folder doesn’t exist, but instead there is “install” folder (which I can’t open as. I have no permissions…)

As far as I know .app file is for simulators only, right? And .ipa is for real devices.

Can it be an issue with reusing cache by appium? Appium tries to reuse cached application which I used long time ago for simulator,but now I don’t need it: Will reuse previously cached application at '/var/folders/94/d2qdbyqs4qz53s4yk6srxc8c0000gq/T/2020128-5889-1nlar2o.au56/Payload/Open Viewer_Example.app'

How can I make Appium to not use cache?

Environment

  • Appium version (or git revision) that exhibits the issue: v 1.16.0-beta.3
  • Last Appium version that did not exhibit the issue (if applicable): -
  • Desktop OS/version used to run Appium: macOS Catalina v 10.15.3
  • Node.js version: 12.6.0
  • Npm version: 6.13.7
  • Mobile platform/version under test: iOS 13.3
  • Real device: iPhone X
  • Appium CLI: v 1.16.0-beta.3

Link to Appium logs

https://gist.github.com/annabutenko/2ec06730639d7f4a390c7f1c4088fdea.js

Code To Reproduce Issue [ Good To Have ]

public class TestBase {

public static IOSDriver<IOSElement> driver;

@BeforeClass
public static void setUpAppium() throws MalformedURLException {
    URL url = new URL("http://127.0.0.1:4723/wd/hub");
    DesiredCapabilities capabilities = new DesiredCapabilities();
    String APP_URL = "/Users/annabutenko/IdeaProjects/Vatoms-iOS-Real-Device/blockv-viewer_2.0.35.ipa";
    capabilities.setCapability(MobileCapabilityType.APP, APP_URL);
    capabilities.setCapability(MobileCapabilityType.PLATFORM_NAME, "iOS");
    capabilities.setCapability(MobileCapabilityType.PLATFORM_VERSION, "13.3");
    capabilities.setCapability(MobileCapabilityType.DEVICE_NAME, "iPhone X");
    capabilities.setCapability("xcodeSigningId", "iPhone Developer");
    capabilities.setCapability("udid", "XXXXXXXXXXXXXX");
    capabilities.setCapability("updatedWDABundleId","com.qtf.WebDriverAgentRunner");
    capabilities.setCapability("useNewWDA", false);
    capabilities.setCapability("newCommandTimeout", 10000);
    capabilities.setCapability("showXcodeLog", true);
    capabilities.setCapability(MobileCapabilityType.AUTOMATION_NAME, "XCUITest");
    capabilities.setCapability("startIWDP", true);

    driver = new IOSDriver<IOSElement>(url, capabilities);
}

@AfterClass
public void after() throws Exception {
    if (driver != null) {
        driver.quit();
    }
}

@After public void logOut(){ new LoginUtils(driver).logout(); }

@Test (in page object pattern) public void logIn(){ LoginPage loginPage = new LoginPage(driver); loginPage.clickOnSignUp(); } }

Thanks in advance for your help!

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:12 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
KazuCocoacommented, Mar 2, 2020

Please ask them since they probably have their own way

0reactions
VijayHugarcommented, Mar 3, 2020

@VenkateshPS I also faced same issue and I received provisioning profile added with my iphone device UDID. I double clicked provisioning profile in my Mac PC in order to install it but still I receive same error. What step I am missing here ? Should Provisioning profile needs to be installed in iphone device?

More info : I execute code from the Visual studio ( C# language) using Windows machine by pointing to appium server running on Mac PC.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Appium: WDA not recognised - Support
Installed 1.16.0-beta.3 for iOS 13. The XCode WDA succeeds but when running the automation script on real device, WDA is not recognized.
Read more >
Installing the application on the iOS phone is very slow
Installing the application on the iOS phone is very slow - Issues/Bugs - Appium Discuss.
Read more >
Troubleshooting - Appium
If you see iOS Simulator failed to install the application. and the paths are correct, try restarting the computer.
Read more >
Can not run app on real iOS devices - Issues/Bugs
then build WebDriverAgentRunner for 'Any iOS Device' in xCode. · started appium in terminal via 'appium' command OR trying to start appium in ......
Read more >
Unable to launch WDA by Appium, trying to set up real iOS ...
it successfully installs WDA on simulator but unable to install the same on real iOS device. Xcode: 12.5 beta Appium:1.19.1 iOS device: 14.4.2....
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