Ios-deploy error code 253

I am trying to launch the App on physical iOS device but the error below pops up:

An unknown server-side error occurred while processing the command. Original error: Could not install app: ‘Command ‘ios-deploy --id c5316c49e4728581e83e30d32213dabfc21770be --uninstall --bundle /Users/fatihs/Desktop/*********.app’ exited with code 253’

Desired Capabilities:

Appium logs are as follows:
[Appium] Welcome to Appium v1.6.5
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> GET /wd/hub/sessions {}
[MJSONWP] Calling AppiumDriver.getSessions() with args: []
[MJSONWP] Responding to client with driver.getSessions() result: []
[HTTP] <-- GET /wd/hub/sessions 200 2 ms - 40
[HTTP] --> POST /wd/hub/session {“desiredCapabilities”:{“app”:"/Users/fatihs/Desktop/xxxxx-uk.app",“deviceName”:“QA iPhone”,“fullReset”:true,“nativeWebTap”:true,“platformName”:“iOS”,“platformVersion”:“10.3”,“showIOSLog”:true,“udid”:“c5316c49e4728581e83e30d32213dabfc21770be”,“newCommandTimeout”:0,“connectHardwareKeyboard”:true}}
[MJSONWP] Calling AppiumDriver.createSession() with args: [{“app”:"/Users/fatihs/Desktop/xxxxx-uk.app",“deviceName”:“QA iPhone”,“fullReset”:true,“nativeWebTap”:true,“platformName”:“iOS”,“platformVersion”:“10.3”,“showIOSLog”:true,“udid”:“c5316c49e4728581e83e30d32213dabfc21770be”,“newCommandTimeout”:0,“connectHardwareKeyboard”:true},null,null]
[BaseDriver] Event ‘newSessionRequested’ logged at 1502025454871 (14:17:34 GMT+0100 (BST))
[Appium] Requested iOS support with version >= 10, using XCUITest driver instead of UIAutomation-based driver, since the latter is unsupported on iOS 10 and up.
[Appium] Creating new XCUITestDriver (v2.30.0) session
[Appium] Capabilities:
[Appium] app: ‘/Users/fatihs/Desktop/xxxxx.app’
[Appium] deviceName: ‘QA iPhone’
[Appium] fullReset: true
[Appium] nativeWebTap: true
[Appium] platformName: ‘iOS’
[Appium] platformVersion: ‘10.3’
[Appium] showIOSLog: true
[Appium] udid: ‘c5316c49e4728581e83e30d32213dabfc21770be’
[Appium] newCommandTimeout: 0
[Appium] connectHardwareKeyboard: true
[XCUITest] XCUITestDriver version: 2.30.0
[BaseDriver] Session created with session id: 5473fd8a-6907-4341-9175-5c56f3fdad2d
[XCUITest] Xcode version set to ‘8.3.3’
[XCUITest] iOS SDK Version set to ‘10.3’
[BaseDriver] Event ‘xcodeDetailsRetrieved’ logged at 1502025454962 (14:17:34 GMT+0100 (BST))
[XCUITest] Available devices: c5316c49e4728581e83e30d32213dabfc21770be
[XCUITest] Creating iDevice object with udid ‘c5316c49e4728581e83e30d32213dabfc21770be’
[XCUITest] Determining device to run tests on: udid: ‘c5316c49e4728581e83e30d32213dabfc21770be’, real device: true
[BaseDriver] Using local app ‘/Users/fatihs/Desktop/xxxxxx.app’
[BaseDriver] Event ‘appConfigured’ logged at 1502025455385 (14:17:35 GMT+0100 (BST))
[XCUITest] Checking whether app ‘/Users/fatihs/Desktop/xxxxx-uk.app’ is actually present on file system
[XCUITest] App is present
[iOS] Getting bundle ID from app ‘/Users/fatihs/Desktop/xxxxx-uk.app’: ‘com.xxxxx.xxxxx-uk-dev’
[BaseDriver] Event ‘resetStarted’ logged at 1502025455387 (14:17:35 GMT+0100 (BST))
[XCUITest] Reset: running ios real device reset flow
[XCUITest] Reset: fullReset requested. Will try to uninstall the app ‘com.xxxxx.xxxxx-uk-dev’.
[XCUITest] Reset: app not installed. No need to uninstall
[BaseDriver] Event ‘resetComplete’ logged at 1502025455636 (14:17:35 GMT+0100 (BST))
[iOSLog] Attempting iOS device log capture via libimobiledevice idevicesyslog
[iOSLog] Found idevicesyslog: ‘/usr/local/bin/idevicesyslog’
[BaseDriver] Event ‘logCaptureStarted’ logged at 1502025455956 (14:17:35 GMT+0100 (BST))
[XCUITest] Setting up real device
[XCUITest] Installing ‘/Users/fatihs/Desktop/xxxxx-uk.app’ on device with UUID ‘c5316c49e4728581e83e30d32213dabfc21770be’…
[XCUITest] Error: Could not install app: ‘Command ‘ios-deploy --id c5316c49e4728581e83e30d32213dabfc21770be --uninstall --bundle /Users/fatihs/Desktop/xxxxxx-uk.app’ exited with code 253’
at IOSDeploy.install$ (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/lib/ios-deploy.js:38:13)
at tryCatch (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as throw] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
Error: Could not install app: ‘Command ‘ios-deploy --id c5316c49e4728581e83e30d32213dabfc21770be --uninstall --bundle /Users/fatihs/Desktop/xxxxx-uk.app’ exited with code 253’
at IOSDeploy.install$ (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/lib/ios-deploy.js:38:13)
at tryCatch (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as throw] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
[XCUITest] Not clearing log files. Use clearSystemFiles capability to turn on.
[iOSLog] Stopping iOS log capture
[MJSONWP] Encountered internal error running command: Error: Could not install app: ‘Command ‘ios-deploy --id c5316c49e4728581e83e30d32213dabfc21770be --uninstall --bundle /Users/fatihs/Desktop/xxxxx-uk.app’ exited with code 253’
at IOSDeploy.install$ (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/lib/ios-deploy.js:38:13)
at tryCatch (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as throw] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)

Once I run the below on terminal:
ios-deploy --id c5316c49e4728581e83e30d32213dabfc21770be --uninstall --bundle /Users/fatihs/Desktop/xxxxx-uk.app

I am displayed the error below at %70:
[ 52%] CreatingStagingDirectory
[ 57%] ExtractingPackage
[ 60%] InspectingPackage
[ 60%] TakingInstallLock
[ 65%] PreflightingApplication
[ 70%] VerifyingApplication
2017-08-06 14:11:03.933 ios-deploy[12288:173291] [ !! ] Error 0xe8008019: The application does not have a valid signature. AMDeviceSecureInstallApplication(0, device, url, options, install_callback, 0)

Any help would be really appreciated. Thanks in advance.

1 Like

Did you solve it? I have same problem.

Even i am facing the same issue can please provide the solution immediately

Appium version : 1.7.1
Xcode version 9.1