appium: Cannot install ipa on real device

[debug] [BaseDriver] Event 'appConfigured' logged at 1564040104914 (15:35:04 GMT+0800 (GMT+08:00))
[debug] [XCUITest] Checking whether app '/var/folders/_d/hsmcfz9n48bbb2t9pf56gxd80000gn/T/2019625-40624-o7g8a6.qnu1f/Payload/xxx.app' is actually present on file system
[debug] [XCUITest] App is present
[debug] [iOS] Getting bundle ID from app '/var/folders/_d/hsmcfz9n48bbb2t9pf56gxd80000gn/T/2019625-40624-o7g8a6.qnu1f/Payload/xxx.app': 'xxxr'
[debug] [BaseDriver] Event 'resetStarted' logged at 1564040104917 (15:35:04 GMT+0800 (GMT+08:00))
[debug] [XCUITest] Reset: fullReset not set. Leaving as is
[debug] [BaseDriver] Event 'resetComplete' logged at 1564040104917 (15:35:04 GMT+0800 (GMT+08:00))
[debug] [XCUITest] Crash reports root '/Users/sino/Library/Logs/CrashReporter/MobileDevice/xxx' does not exist. Got nothing to gather.
[debug] [BaseDriver] Event 'logCaptureStarted' logged at 1564040105173 (15:35:05 GMT+0800 (GMT+08:00))
[XCUITest] Setting up real device
[debug] [XCUITest] Verifying application platform
[debug] [XCUITest] CFBundleSupportedPlatforms: ["iPhoneOS"]
[debug] [XCUITest] Installing '/var/folders/_d/hsmcfz9n48bbb2t9pf56gxd80000gn/T/2019625-40624-o7g8a6.qnu1f/Payload/xxx.app' on device with UUID 'xxxx'...
[XCUITest] Error: Could not install app: 'Unexpected response NO_RESOURCES'
[XCUITest]     at IOSDeploy.install (/Users/xxx/Desktop/xxx/xxx/node_modules/appium-xcuitest-driver/lib/ios-deploy.js:35:13)

I’m using appium 1.14.0-beta2 to test my app.But it failed when install the ipa on device.My device is iOS12.4 and Xcode is 10.3.And ios-deploy in my mac is 1.9.4.PLZ help me

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 2
  • Comments: 44 (21 by maintainers)

Most upvoted comments

@mayureshshirodkar Yes!! It is a node issue. It works all good with node 10.16.x. It must have something to do with the fs module of nodejs. I will investigate that tomorrow

I met this issue too. using appium@beta, iOS 13.0 and Xcode 11

@mayureshshirodkar Could you reinstall the beta? I changed the push logic and it is the same as how ideviceinstaller works. If ideviceinstaller works, appium should work as well now. I hope this fixes it

Hi @umutuzgur i have tested this issue on the latest appium@beta installed via npm install -g appium@beta --no-shrinkwrap --verbose This installed appium-xcuitest-driver after v2.125.0

I tested below 2 devices, resulted in varying error. Issue doesn’t seem to be fixed for me. App size : 7.4 MB Also i have restarted both the devices.

iPhone X(v 12.3.1) This logs came after a time out of some seconds.

2019-08-02 08:33:02:494 - [debug] [XCUITest] Installing '/var/folders/wp/fgdnh_qd7yg_myhbcb8n9c7nkssxpp/T/201972-61951-1tkid5q.pilnk/Payload/Navigate.app' on device with UUID '936c1853dc3b86942e3344c0bc9f978f8d749c62'...
2019-08-02 08:34:03:816 - [XCUITest] Error: Could not install app: 'operation timed out'
2019-08-02 08:34:03:816 - [XCUITest]     at IOSDeploy.install (/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/lib/ios-deploy.js:35:13)
2019-08-02 08:34:03:818 - [debug] [BaseDriver] Event 'newSessionStarted' logged at 1564734843818 (14:04:03 GMT+0530 (India Standard Time))
2019-08-02 08:34:03:818 - [debug] [W3C] Encountered internal error running command: Error: Could not install app: 'operation timed out'
2019-08-02 08:34:03:818 - [debug] [W3C]     at IOSDeploy.install (/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/lib/ios-deploy.js:35:13)
2019-08-02 08:34:03:836 - [HTTP] <-- POST /wd/hub/session 500 63494 ms - 585
2019-08-02 08:34:03:836 - [HTTP]  

iPhone 6 (v12.3.1) This logs came up instantly.

2019-08-02 08:34:21:849 - [debug] [XCUITest] Installing '/var/folders/wp/fgdnh_qd7yg_myhbcb8n9c7nkssxpp/T/201972-61951-1tkid5q.pilnk/Payload/Navigate.app' on device with UUID '771c2184b4beaa9c61de1af5027b241904076351'...
2019-08-02 08:34:24:494 - [XCUITest] Error: Could not install app: 'Unexpected response NO_RESOURCES'
2019-08-02 08:34:24:494 - [XCUITest]     at IOSDeploy.install (/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/lib/ios-deploy.js:35:13)
2019-08-02 08:34:24:495 - [debug] [BaseDriver] Event 'newSessionStarted' logged at 1564734864495 (14:04:24 GMT+0530 (India Standard Time))
2019-08-02 08:34:24:495 - [debug] [W3C] Encountered internal error running command: Error: Could not install app: 'Unexpected response NO_RESOURCES'
2019-08-02 08:34:24:495 - [debug] [W3C]     at IOSDeploy.install (/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/lib/ios-deploy.js:35:13)
2019-08-02 08:34:24:497 - [HTTP] <-- POST /wd/hub/session 500 3160 ms - 611

Let me know if you need more details.

@mayureshshirodkar Were you able to test it after the restart? I’m asking because we might not be able to fix this issue but have an error instead that says please restart the phone

@mayureshshirodkar ideviceinstaller doesn’t need to be installed. Could you also make sure that you are on the latest beta? A reinstallation of appium@beta would do the trick

Hi @mayureshshirodkar. Thanks for the detailed investigation. I know where the problem is but I need some regression tests to verify that it is fixed. I hope to fix this issue soon