Appium-desktop: Could not install app with Appium 1.15.0-1

Created on 4 Oct 2019  路  25Comments  路  Source: appium/appium-desktop

The problem

I have recently downloaded the latest version of Appium which is 1.15.1 and when I try to install the app through inspector, I get the error Could not install app: 'The "path" argument must be of type string. Received type undefined'. I have also tried upgrading the node js and it didn't work either. Before this Appium, I was using the beta version of Appium 1.15 and it was working fine. Not sure what I am doing wrong here.

Environment

  • Appium version (or git revision) that exhibits the issue:1.15.0-1
  • Last Appium version that did not exhibit the issue (if applicable):1.15 beta
  • Desktop OS/version used to run Appium:Mac OS
  • Node.js version (unless using Appium.app|exe):v12.11.1
  • Npm or Yarn package manager:6.9.0
  • Mobile platform/version under test:IOS
  • Real device or emulator/simulator:
  • Appium CLI or Appium.app|exe:

Details

If necessary, describe the problem you have been experiencing in more detail.

Link to Appium logs

Create a GIST which is a paste of your _full_ Appium logs, and link them here.
Do _NOT_ paste your full Appium logs here, as it will make this issue very long and hard to read!
If you are reporting a bug, _always_ include Appium logs!

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.

Most helpful comment

Okay. With the npm installed version, I do not see that error (I just see other errors that prevent my tests from running). So it seems this issue may be specific to Appium Desktop, at least for me.

All 25 comments

I am having the same issue. Using Appium 1.13.0, my app installs fine and the tests run. Here is what is in the Appium log: Appium Log Gist

What seems important is this:
Encountered internal error running command: Error: Could not install app: 'The "path" argument must be of type string. Received type undefined' [W3C] at IOSDeploy.install (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/lib/ios-deploy.js:41:13)

Make sure the nodejs version is 10.10 or greater. Also, in appium@beta this behaviour has been changed.

The node JS version is v12.11.1 and this is working perfectly fine with Appium 1.15.0. Let me know if you need anything other information.

Hmm. My node version is 10.16.3, their Active TLS. I updated node using n to 12.9.1, then closed the appium desktop app and reopened it, and tried again. I saw the same error. Is it maybe specific to the Desktop app?

It might be. Try Appium installed from npm

Okay. With the npm installed version, I do not see that error (I just see other errors that prevent my tests from running). So it seems this issue may be specific to Appium Desktop, at least for me.

So I am using Appium 1.15.0 which works perfectly fine. So are we going to fix the desktop app for 1.15.0-1?

@KS261187 I'll look into but installing and running appium through the command line:

npm install -g appium
appium

...is always a good workaround for problems with the Appium bundle.

I was going to post this bug, but @KS261187 was faster :). This is definitely a problem with 1.15.0-1 as when I'm launching appium server from command line (which is 1.15.0) and then configure Appium Desktop to use this custom server - everything fine. And as soon as I'm switching to default desktop version server - I'm receiving an error with path while installation. Is it related to these changes?
P.S. when I'm switching to Appium 1.14.0 - also installation is going fine.

Just updated Appium Desktop app to v1.15.0 and run into the same issue about the path. Here are logs from appium:

[XCUITest] Setting up real device
[XCUITest] Verifying application platform
[XCUITest] CFBundleSupportedPlatforms: ["iPhoneOS"]
[XCUITest] Installing 'some.app' on device with UUID '**************************'...
[XCUITest] Error was thrown during the installation process
[XCUITest] TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined
[XCUITest]     at assertPath (path.js:39:11)
[XCUITest]     at Object.join (path.js:1157:7)
[XCUITest]     at Object.join [as walkDir] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-support/lib/fs.js:76:29)
[XCUITest] Error: Could not install app: 'The "path" argument must be of type string. Received type undefined'
[XCUITest]     at IOSDeploy.install (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/lib/ios-deploy.js:41:13)
[DevCon Factory] Releasing connections for  '**************************'... device on any port number
[DevCon Factory] No cached connections have been found
[BaseDriver] Event 'newSessionStarted' logged at 1570443775901 (13:22:55 GMT+0300 (EEST))
[MJSONWP] Encountered internal error running command: Error: Could not install app: 'The "path" argument must be of type string. Received type undefined'
[MJSONWP]     at IOSDeploy.install (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/lib/ios-deploy.js:41:13)
[HTTP] <-- POST /wd/hub/session 500 1266 ms - 231
[HTTP] 
[HTTP] --> DELETE /wd/hub/session
[HTTP] {}
[HTTP] No route found. Setting content type to 'text/plain'
[HTTP] <-- DELETE /wd/hub/session 404 4 ms - 57
[HTTP] 

When using a custom server from CLI (1.15.0), it works as expected.

Same problem here. All good on 1.15.0, not working anymore on 1.15.0-1, same error message.

Thank you!

Same problem here. with 1.15.0 but when try run appium using only the bundle my appium work but with try install de app, same error message.

Same problem here. I will downgrade to 1.15.0 to check if the issue happens.

The same issue.

It's sad you make a prod version with such bugs

Same issue

The same issue.

It's sad you make a prod version with such bugs

Dude, it's a free tool, just use the previous version and say thank you.

Double check your node version... I saw this "path" error when my node version was older.

New pre-release is out for v1.15.1: https://github.com/appium/appium-desktop/releases/tag/v1.15.1

This should solve the problems. Let me know if it works.

New pre-release is out for v1.15.1: https://github.com/appium/appium-desktop/releases/tag/v1.15.1

This should solve the problems. Let me know if it works.

Problem solved for me on v1.15.1, thank you!

thanks for the confirmation :)

@KS261187 I'll look into but installing and running appium through the command line:

npm install -g appium
appium

...is always a good workaround for problems with the Appium bundle.

I'm curious. For those that use Appium in the terminal, how do you inspect for accessibility id's? Are there other tools that are used? I figure using Appium in the terminal might solve some of my issues but I use desktop for the inspector. Maybe I can just use both....

You have to use the custom server from the Appium desktop, in order to inspect the elements for the Appium server that is launched from the terminal.

Step 1. Start the Appium server from the terminal, probably with the port 4443
Step 2. Start the Appium desktop and change the terminal to 4444 and then click on custom server and then start inspecting the elements.

You should be good to go.

Thanks
Krishann

As https://github.com/appium/appium-desktop/issues/1116#issuecomment-541546663 , 1.15.1 should work without the path error

I upgraded to v1.15.1 but at launch i get a pop up that says that the new version 1.15.0.1 is out now, i can live with that issue but i think i should not get that warning, right?

Yes, It is because the desktop 1.15.1 is pre-release in https://github.com/appium/appium-desktop/releases
After the label will be release, the latest one will be 1.15.1

Let me check if we can add a description about the update system does not include pre-release version.

Was this page helpful?
0 / 5 - 0 ratings