Why the .app failed to install on device from Appium

Mac 10.11.6
Xcode 7.3.1
Appium 1.5.3

Launching Appium with command: ‘/Applications/Appium.app/Contents/Resources/node/bin/node’ appium/build/lib/main.js --session-override --debug-log-spacing --platform-version “8.1” --platform-name “iOS” --default-device --launch-timeout “90000” --native-instruments-lib

[Appium] Welcome to Appium v1.5.3

[Appium] Non-default server args:

[Appium] sessionOverride: true

[Appium] defaultDevice: true
[Appium] debugLogSpacing: true
[Appium] platformName: ‘iOS’
[Appium] platformVersion: ‘8.1’
[Appium] nativeInstrumentsLib: true
[Appium] Deprecated server args:

[Appium] --platform-name => --default-capabilities ‘{“platformName”:“iOS”}’
[Appium] --platform-version => --default-capabilities ‘{“platformVersion”:“8.1”}’
[Appium] --native-instruments-lib => --default-capabilities ‘{“nativeInstrumentsLib”:true}’
[Appium] Default capabilities, which will be added to each request unless overridden by desired capabilities:

[Appium] platformName: ‘iOS’

[Appium] platformVersion: ‘8.1’
[Appium] nativeInstrumentsLib: true

[Appium] Appium REST http interface listener started on 0.0.0.0:4723

[HTTP] --> GET /wd/hub/status {}

[MJSONWP] Calling AppiumDriver.getStatus() with args: []

[MJSONWP] Responding to client with driver.getStatus() result: {“build”:{“version”:“1.5.3”…

[HTTP] <-- GET /wd/hub/status 200 18 ms - 83

[HTTP] --> POST /wd/hub/session {“desiredCapabilities”:{“deviceName”:“MO004”,“udid”:“de9a026a526de3b6a8f5b3f91fa7f9ad4dc0804f”,“app”:"/Users/qateam/Desktop/GTS/GTS 10.app",“waitForAppScript”:"‘$.delay(3000); true’",“platformVersion”:“8.1”,“platformName”:“iOS”}}

[MJSONWP] Calling AppiumDriver.createSession() with args: [{“deviceName”:“MO004”,"udi…

[Appium] Creating new IosDriver session
[Appium] Capabilities:
[Appium] deviceName: ‘MO004’
[Appium] udid: ‘de9a026a526de3b6a8f5b3f91fa7f9ad4dc0804f’
[Appium] app: ‘/Users/qateam/Desktop/GTS/GTS 10.app’
[Appium] waitForAppScript: ‘‘$.delay(3000); true’’
[Appium] platformVersion: ‘8.1’
[Appium] platformName: ‘iOS’
[Appium] nativeInstrumentsLib: true

[BaseDriver] Session created with session id: a2a1063b-fe22-4ab5-8ff8-2ac9af2920ca

[debug] [iOS] Not auto-detecting udid.
[BaseDriver] Using local app ‘/Users/qateam/Desktop/GTS/GTS 10.app’
[debug] [iOS] Removing any remaining instruments sockets

[debug] [iOS] Cleaned up instruments socket /var/folders/7y/x200fww90hv1p63j03mldd_r0000gn/T/instruments_sock
[debug] [iOS] No language specified. Using default strings
[debug] [iOS] Strings file not found. Looking in ‘en.lproj’ directory
[iOS] Could not file localizable strings file ‘Localizable.strings’!
[debug] [ios-app-utils] Getting bundle ID from app

[iOS] Extracted bundleID: com.amosenterprise.gtsfr from app: /Users/qateam/Desktop/GTS/GTS 10.app

[debug] [iOS] Creating instruments
[debug] [UIAuto] Preparing bootstrap code
[debug] [UIAuto] Dynamic bootstrap dir: /Users/qateam/Library/Application Support/appium/bootstrap
[debug] [UIAuto] Dynamic env: {“nodePath”:"/Applications/Appium.app/Contents/Resources/node/bin/node",“commandProxyClientPath”:"/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-ios-driver/node_modules/appium-uiauto/build/lib/bin/command-proxy-client.js",“instrumentsSock”:"/var/folders/7y/x200fww90hv1p63j03mldd_r0000gn/T/instruments_sock",“interKeyDelay”:null,“justLoopInfinitely”:false,“autoAcceptAlerts”:false,“autoDismissAlerts”:false,“sendKeyStrategy”:“grouped”}

[debug] [UIAuto] Dynamic bootstrap code: // This file is automatically generated. Do not manually modify!

[debug] [UIAuto] Dynamic bootstrap path: /Users/qateam/Library/Application Support/appium/bootstrap/bootstrap-19f3a156f474ff38.js

[debug] [UIAuto] Reusing dynamic bootstrap: /Users/qateam/Library/Application Support/appium/bootstrap/bootstrap-19f3a156f474ff38.js
[debug] [iOS] Running ios real device reset flow
[debug] [iOSLog] Attempting iOS device log capture via libimobiledevice idevicesyslog
[debug] [iOSLog] Found idevicesyslog: ‘/usr/local/bin/idevicesyslog’

[debug] [iOS] Creating iDevice object with udid de9a026a526de3b6a8f5b3f91fa7f9ad4dc0804f

[debug] [iOS] App is not installed. Will try to install.

[MJSONWP] Encountered internal error running command: Error: Installing /Users/qateam/Desktop/GTS/GTS 10.app failed
at /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-ios-driver/node_modules/node-idevice/main.js:159:6
at ChildProcess.exithandler (child_process.js:193:7)
at emitTwo (events.js:100:13)
at ChildProcess.emit (events.js:185:7)
at maybeClose (internal/child_process.js:850:16)
at Socket. (internal/child_process.js:323:11)
at emitOne (events.js:90:13)
at Socket.emit (events.js:182:7)
at Pipe._onclose (net.js:475:12)

I don’t have any idea about this error, could anyone advise me? please…

Thank you.

I have the same on platform 9.3.5 with Appium 1.5.3.
I dont know what happend , yesterday everything worked nice.

I’m seeing the same issue on IOS using Appium.app to open the app for debugging.
platform 9.3.5 with Appium 1.5.3.

The App is already installed and should not be installed. This has worked fine in the past, just started failing, maybe the upgrade from 9.3.4 to 9.3.5.

Gist of Appium Log:

https://gist.github.com/nuggit32/be4308cd39298fb96cc5432a3c05cd06

I think we should probably post to request a fix/investigation on github issues.

I’m getting this issue after I upgraded to iOS 10.0.1

I’ve noticed there was an Itunes update around the time the tests
stopped working on both the CI server and also my local Mac. Really nothing else that i’m aware has changed in the setup. The itunes update (see update history in Appstore) was around 15/16th of September.

Could this have caused things to not work any longer?

I created a github issue on this topic.

Did you update your Mac to 10.11.6 recently?
If Yes, Follow the below post and check if thats the issue.
There has been a security upgrade recently which has caused issues.

I am also facing the same problem and I tried the solutions which you suggested but still it is not working.This is the logs which I am getting

HTTP] <-- GET /wd/hub/status 200 17 ms - 83

[HTTP] --> GET /wd/hub/status {}

[MJSONWP] Calling AppiumDriver.getStatus() with args: []

[MJSONWP] Responding to client with driver.getStatus() result: {“build”:{“version”:“1.5.3”…

[HTTP] <-- GET /wd/hub/status 200 23 ms - 83

Launching Appium with command: ‘/Applications/Appium.app/Contents/Resources/node/bin/node’ appium/build/lib/main.js --address “127.0.0.1” --pre-launch --debug-log-spacing --platform-version “9.1” --platform-name “iOS” --app “au.net.abc.ABC” --show-ios-log --show-ios-log --device-name “iPhone 6 Plus”

[Appium] Welcome to Appium v1.5.3

[Appium] Non-default server args:

[Appium] address: ‘127.0.0.1’
[Appium] launch: true
[Appium] debugLogSpacing: true
[Appium] platformName: ‘iOS’
[Appium] platformVersion: ‘9.1’
[Appium] deviceName: ‘iPhone 6 Plus’
[Appium] app: ‘au.net.abc.ABC’
[Appium] showIOSLog: true
[Appium] Deprecated server args:
[Appium] --platform-name => --default-capabilities ‘{“platformName”:“iOS”}’
[Appium] --platform-version => --default-capabilities ‘{“platformVersion”:“9.1”}’
[Appium] --device-name => --default-capabilities ‘{“deviceName”:“iPhone 6 Plus”}’
[Appium] --app => --default-capabilities ‘{“app”:“au.net.abc.ABC”}’
[Appium] --show-ios-log => --default-capabilities ‘{“showIOSLog”:true}’
[Appium] Default capabilities, which will be added to each request unless overridden by desired capabilities:
[Appium] platformName: ‘iOS’

[Appium] platformVersion: ‘9.1’
[Appium] deviceName: ‘iPhone 6 Plus’
[Appium] app: ‘au.net.abc.ABC’
[Appium] showIOSLog: true

[Appium] Appium REST http interface listener started on 127.0.0.1:4723

[HTTP] --> GET /wd/hub/status {}

[MJSONWP] Calling AppiumDriver.getStatus() with args: []

[HTTP] --> GET /wd/hub/status {}

[MJSONWP] Calling AppiumDriver.getStatus() with args: []

[MJSONWP] Responding to client with driver.getStatus() result: {“build”:{“version”:“1.5.3”…
[HTTP] <-- GET /wd/hub/status 200 33 ms - 83

[MJSONWP] Responding to client with driver.getStatus() result: {“build”:{“version”:“1.5.3”…
[HTTP] <-- GET /wd/hub/status 200 21 ms - 83

[HTTP] --> GET /wd/hub/status {}

[MJSONWP] Calling AppiumDriver.getStatus() with args: []

[MJSONWP] Responding to client with driver.getStatus() result: {“build”:{“version”:“1.5.3”…
[HTTP] <-- GET /wd/hub/status 200 11 ms - 83

[HTTP] --> GET /wd/hub/status {}

[MJSONWP] Calling AppiumDriver.getStatus() with args: []

[MJSONWP] Responding to client with driver.getStatus() result: {“build”:{“version”:“1.5.3”…
[HTTP] <-- GET /wd/hub/status 200 10 ms - 83
[HTTP] --> GET /wd/hub/status {}
[MJSONWP] Calling AppiumDriver.getStatus() with args: []
[MJSONWP] Responding to client with driver.getStatus() result: {“build”:{“version”:“1.5.3”…
[HTTP] <-- GET /wd/hub/status 200 8 ms - 83

[HTTP] --> GET /wd/hub/status {}

[MJSONWP] Calling AppiumDriver.getStatus() with args: []

[MJSONWP] Responding to client with driver.getStatus() result: {“build”:{“version”:“1.5.3”…
[HTTP] <-- GET /wd/hub/status 200 10 ms - 83

[HTTP] --> GET /wd/hub/status {}

[MJSONWP] Calling AppiumDriver.getStatus() with args: []

[MJSONWP] Responding to client with driver.getStatus() result: {“build”:{“version”:“1.5.3”…
[HTTP] <-- GET /wd/hub/status 200 8 ms - 83

[HTTP] --> GET /wd/hub/status {}

[MJSONWP] Calling AppiumDriver.getStatus() with args: []

[MJSONWP] Responding to client with driver.getStatus() result: {“build”:{“version”:“1.5.3”…
[HTTP] <-- GET /wd/hub/status 200 9 ms - 83

[HTTP] --> GET /wd/hub/status {}
[MJSONWP] Calling AppiumDriver.getStatus() with args: []
[MJSONWP] Responding to client with driver.getStatus() result: {“build”:{“version”:“1.5.3”…

[HTTP] <-- GET /wd/hub/status 200 9 ms - 83

[HTTP] --> GET /wd/hub/status {}

[MJSONWP] Calling AppiumDri

Can you add the entire Appium log ?

That is the entire appium log i am getting in appium GUI console.I also wondered that I am not getting any error in the GUI but the app is not loading.

Problem was solved here:

It is working now after executing the following command.

sudo chmod -R 777 /var/db/lockdown/

2 Likes