App Installation issue after installing appium 1.5

I upgraded to appium 1.5 and after that I was unable to launch the app on devices . It was working fine and stopped all of a sudden

here is my log

Last login: Wed Mar 9 11:39:26 on ttys000
Lakshmys-MacBook-Pro:~ lakshmy$ appium 7
usage: appium [-h] [-v] [–shell] [–ipa IPA] [-a ADDRESS] [-p PORT]
[-ca CALLBACKADDRESS] [-cp CALLBACKPORT] [-bp BOOTSTRAPPORT]
[-r BACKENDRETRIES] [–session-override] [-l] [-g LOG]
[–log-level {info,info:debug,info:info,info:warn,info:error,warn,warn:debug,warn:info,warn:warn,warn:error,error,error:debug,error:info,error:warn,error:error,debug,debug:debug,debug:info,debug:warn,debug:error}]
[–log-timestamp] [–local-timezone] [–log-no-colors]
[-G WEBHOOK] [–safari] [–default-device] [–force-iphone]
[–force-ipad] [–tracetemplate AUTOMATIONTRACETEMPLATEPATH]
[–instruments INSTRUMENTSPATH] [–nodeconfig NODECONFIG]
[-ra ROBOTADDRESS] [-rp ROBOTPORT]
[–selendroid-port SELENDROIDPORT]
[–chromedriver-port CHROMEDRIVERPORT]
[–chromedriver-executable CHROMEDRIVEREXECUTABLE]
[–show-config] [–no-perms-check]
[–command-timeout DEFAULTCOMMANDTIMEOUT] [–strict-caps]
[–isolate-sim-device] [–tmp TMPDIR] [–trace-dir TRACEDIR]
[–debug-log-spacing] [–suppress-adb-kill-server]
[–async-trace] [–webkit-debug-proxy-port WEBKITDEBUGPROXYPORT]
[–default-capabilities DEFAULTCAPABILITIES] [-k]
[–platform-name PLATFORMNAME]
[–platform-version PLATFORMVERSION]
[–automation-name AUTOMATIONNAME] [–device-name DEVICENAME]
[–browser-name BROWSERNAME] [–app APP] [-lt LAUNCHTIMEOUT]
[–language LANGUAGE] [–locale LOCALE] [-U UDID]
[–orientation ORIENTATION] [–no-reset] [–full-reset]
[–app-pkg APPPACKAGE] [–app-activity APPACTIVITY]
[–app-wait-package APPWAITPACKAGE]
[–app-wait-activity APPWAITACTIVITY]
[–device-ready-timeout DEVICEREADYTIMEOUT]
[–android-coverage ANDROIDCOVERAGE] [–avd AVD]
[–avd-args AVDARGS] [–use-keystore]
[–keystore-path KEYSTOREPATH]
[–keystore-password KEYSTOREPASSWORD] [–key-alias KEYALIAS]
[–key-password KEYPASSWORD] [–intent-action INTENTACTION]
[–intent-category INTENTCATEGORY] [–intent-flags INTENTFLAGS]
[–intent-args OPTIONALINTENTARGUMENTS]
[–dont-stop-app-on-reset] [–calendar-format CALENDARFORMAT]
[–native-instruments-lib] [–keep-keychains]
[–localizable-strings-dir LOCALIZABLESTRINGSDIR]
[–show-ios-log]

appium: error: Unrecognized arguments: 7.
Lakshmys-MacBook-Pro:~ lakshmy$ appium &
[1] 6577
Lakshmys-MacBook-Pro:~ lakshmy$ [Appium] Welcome to Appium v1.5.0 (REV 470e5356f559481a5529df8d4e929aa62254cee8)
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> POST /wd/hub/session
[MJSONWP] Calling AppiumDriver.createSession() with args: [{“platformName”:“iOS”,“platformVersion”:“9.2.1”,“deviceName”:“iPhone”,“app”:"/Users/lakshmy/RubymineProjects/l3-mobile-automation/artifacts/SSP.ap…
[Appium] Creating new IosDriver session
[Appium] Capabilities:
[Appium] platformName: ‘iOS’
[Appium] platformVersion: ‘9.2.1’
[Appium] deviceName: ‘iPhone’
[Appium] app: ‘/Users/lakshmy/RubymineProjects/l3-mobile-automation/artifacts/SSP.app’
[Appium] name: ‘Appname’
[Appium] udid: ‘dc9ebe377a414d22c3fe83acdf9ac8230100e2ec’
[BaseDriver] The following capabilities were provided, but are not recognized by appium: name.
[BaseDriver] Session created with session id: ebb9f7ff-ffe6-419a-a70e-99d7dc4cdca7
[debug] [iOS] Not auto-detecting udid.
[BaseDriver] Using local app ‘/Users/lakshmy/RubymineProjects/l3-mobile-automation/artifacts/SSP.app’
[debug] [iOS] Removing any remaining instruments sockets
[debug] [iOS] Cleaned up instruments socket /var/folders/5x/mngmfvk97xnfrlb6npqnvmpw0000gp/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.appname.SSP from app: /Users/lakshmy/RubymineProjects/l3-mobile-automation/artifacts/SSP.app
[debug] [iOS] Creating instruments
[debug] [UIAuto] Preparing bootstrap code
[debug] [UIAuto] Dynamic bootstrap dir: /Users/lakshmy/Library/Application Support/appium/bootstrap
[debug] [UIAuto] Dynamic env: {“nodePath”:"/usr/local/Cellar/node/5.7.0/bin/node",“commandProxyClientPath”:"/usr/local/lib/node_modules/appium/node_modules/appium-uiauto/build/lib/bin/command-proxy-client.js",“instrumentsSock”:"/var/folders/5x/mngmfvk97xnfrlb6npqnvmpw0000gp/T/instruments_sock",“interKeyDelay”:null,“justLoopInfinitely”:false,“autoAcceptAlerts”:false,“autoDismissAlerts”:false,“sendKeyStrategy”:“grouped”}
[debug] [UIAuto] Dynamic bootstrap code: // This file is automatically generated…o not manually modify!
[debug] [UIAuto] Dynamic bootstrap path: /Users/lakshmy/Library/Application Support/appium/bootstrap/bootstrap-b4f2049a7bca03b1.js
[debug] [UIAuto] Reusing dynamic bootstrap: /Users/lakshmy/Library/Application Support/appium/bootstrap/bootstrap-b4f2049a7bca03b1.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 dc9ebe377a414d22c3fe83acdf9ac8230100e2ec
[debug] [iOS] App is not installed. Will try to install the app.
[MJSONWP] Encountered internal error running command: Error: Command failed: ideviceinstaller -u dc9ebe377a414d22c3fe83acdf9ac8230100e2ec -i /Users/lakshmy/RubymineProjects/l3-mobile-automation/artifacts/SSP.app

at ChildProcess.exithandler (child_process.js:202:12)
at emitTwo (events.js:100:13)
at ChildProcess.emit (events.js:185:7)
at maybeClose (internal/child_process.js:827:16)
at Socket.<anonymous> (internal/child_process.js:319:11)
at emitOne (events.js:90:13)
at Socket.emit (events.js:182:7)
at Pipe._onclose (net.js:475:12)

[HTTP] <-- POST /wd/hub/session 500 8361 ms - 289

This is the command that fails, can you run it from the command line?

this is the error I get there

Uploading SSP.app package contents… DONE.
Installing ‘(null)’

  • CreatingStagingDirectory (5%)
  • ExtractingPackage (15%)
  • InspectingPackage (20%)
  • TakingInstallLock (20%)
  • PreflightingApplication (30%)
  • InstallingEmbeddedProfile (30%)
  • VerifyingApplication (40%)
  • Error occurred: ApplicationVerificationFailed

Got it resolved . Thanks for the hint and direction . I had updated my xcode and I was using a .app file which was built with an earlier version of xcode . I rebuilt it and it works fine

1 Like

I solve the similar problew by reinstalling ideviceinstaller and libimobiledevice. You need the latest libimobiledevice, in the Appium 1.5.3 version.
Open the Terminal, type the commands below:

  1. brew uninstall ideviceinstaller
  2. brew uninstall libimobiledevice
  3. brew install --HEAD libimobiledevice
  4. brew link --overwrite libimobiledevice
  5. brew install ideviceinstaller
  6. brew link --overwrite ideviceinstaller

It may work for you.

3 Likes

Yeah…It Worked. Thanks…!!