Failiing to install iOS app on real device on iOS 13.3 with WDA and appium beta
See original GitHub issueThe 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:
- Created 4 years ago
- Comments:12 (3 by maintainers)
Top GitHub Comments
Please ask them since they probably have their own way
@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.