Comments (18)
It might be the app is just too big, so it needs a lot of time to complete the installation. Currently this timeout (60s) is not configurable, but I could add a new capability to change that
from appium.
the patch has been published to xcuitest driver v 7.11.3
from appium.
it does not work like that. Check
on how to update installed drivers. You could also fully reinstalll the driver to get the most recent version of itfrom appium.
What happens when you run the ios-deploy
command directly? (without Appium)
Or removing the strategy could help to see more errors directly by Appium.
from appium.
[AppiumDriver@25b6] Encountered internal error running command: Error: 2024-04-10 17:37:50.564 ios-deploy[89978:9858472] [ !! ] Error 0xe800002d: Could not send a message to the device. AMDeviceStopSession(device)
[AppiumDriver@25b6]
[AppiumDriver@25b6] at installWithIosDeploy (/Users/ishan.nehu/.appium/node_modules/appium-xcuitest-driver/lib/ios-deploy.js:74:15)
this error has nothing to do with the driver. Consider changing the install strategy or report an issue to ios-deploy.
from appium.
Serial push fails and it automatically falls back to ios-deploy. I don't set it. I can also uninstall ios-deply from my machine and try if you need those logs. I am confused because the app installs on the device but the session terminates. I tried many things i increased the newcommand time out used different installStratergy but nothing worked. Need your help.!
[AppiumDriver@e7d4] Event 'newSessionRequested' logged at 1712839689671 (14:48:09 GMT+0200 (Central European Summer Time))
[BaseDriver] The capabilities ["platformName"] are standard capabilities and do not require "appium:" prefix
[Appium] Attempting to find matching driver for automationName 'XCUITest' and platformName 'iOS'
[Appium] The 'xcuitest' driver was installed and matched caps.
[Appium] Will require it at /Users/ishan.nehu/.appium/node_modules/appium-xcuitest-driver
[Appium] Requiring driver at /Users/ishan.nehu/.appium/node_modules/appium-xcuitest-driver/build/index.js
[AppiumDriver@e7d4] Appium v2.5.2 creating new XCUITestDriver (v6.0.2) session
[AppiumDriver@e7d4] Checking BaseDriver versions for Appium and XCUITestDriver
[AppiumDriver@e7d4] Appium's BaseDriver version is 9.5.3
[AppiumDriver@e7d4] XCUITestDriver's BaseDriver version is 9.5.3
[XCUITestDriver@3cfc] Creating session with W3C capabilities: {
[XCUITestDriver@3cfc] "alwaysMatch": {
[XCUITestDriver@3cfc] "platformName": "iOS",
[XCUITestDriver@3cfc] "appium:automationName": "XCUITest",
[XCUITestDriver@3cfc] "appium:udid": "00008101-001D444A1EC2001E",
[XCUITestDriver@3cfc] "appium:deviceName": "9 iPhone 12 mini",
[XCUITestDriver@3cfc] "appium:platformVersion": "17.3",
[XCUITestDriver@3cfc] "appium:clearSystemFiles": true,
[XCUITestDriver@3cfc] "appium:newCommandTimeout": 60,
[XCUITestDriver@3cfc] "appium:app": "https://appcenter.web.mediaworks.de/apps/category/1/app/772318/download?authorization=5sdsjdesjb1hss",
[XCUITestDriver@3cfc] "appium:connectHardwareKeyboard": true
[XCUITestDriver@3cfc] },
[XCUITestDriver@3cfc] "firstMatch": [
[XCUITestDriver@3cfc] {}
[XCUITestDriver@3cfc] ]
[XCUITestDriver@3cfc] }
[XCUITestDriver@3cfc (287bdde9)] Session created with session id: 287bdde9-7078-487b-bef7-a1197bbfaff2
[XCUITest] Current user: 'ishan.nehu'
[XCUITestDriver@3cfc (287bdde9)] Available devices: 00008101-001D444A1EC2001E
[XCUITest] Creating iDevice object with udid '00008101-001D444A1EC2001E'
[XCUITestDriver@3cfc (287bdde9)] Determining device to run tests on: udid: '00008101-001D444A1EC2001E', real device: true
[XCUITestDriver@3cfc (287bdde9)] Event 'xcodeDetailsRetrieved' logged at 1712839689698 (14:48:09 GMT+0200 (Central European Summer Time))
[BaseDriver] Using downloadable app 'https://appcenter.web.mediaworks.de/apps/category/1/app/772318/download?authorization=5sdsjdesjb1hss'
[BaseDriver] Etag: undefined
[BaseDriver] Last-Modified: Thu, 11 Apr 2024 12:37:52 GMT
[BaseDriver] Cache-Control: max-age=0, must-revalidate, private
[BaseDriver] Content-Type: application/octet-stream
[BaseDriver] Content-Disposition: attachment; filename="care.ipa"
[BaseDriver] The application (460.95 MB) has been downloaded to '/var/folders/fn/97l7k3d928z34hn8jsgxn_1r0000gn/T/2024311-61079-12oiq32.8sn3/care.ipa' in 44.300s
[BaseDriver] Approximate download speed: 10.41 MB/s
[XCUITestDriver@3cfc (287bdde9)] Found 1 bundle in 'care.ipa': Payload/care.app
[XCUITestDriver@3cfc (287bdde9)] 'Payload/care.app' is the resulting application bundle selected from '/var/folders/fn/97l7k3d928z34hn8jsgxn_1r0000gn/T/2024311-61079-12oiq32.8sn3/care.ipa'
[XCUITestDriver@3cfc (287bdde9)] Event 'appConfigured' logged at 1712839743857 (14:49:03 GMT+0200 (Central European Summer Time))
[XCUITest] Checking whether app '/var/folders/fn/97l7k3d928z34hn8jsgxn_1r0000gn/T/2024311-61079-zo8ck1.otq2/care.app' is actually present on file system
[XCUITest] App is present
[XCUITest] Getting bundle ID from app '/var/folders/fn/97l7k3d928z34hn8jsgxn_1r0000gn/T/2024311-61079-zo8ck1.otq2/care.app': 'de.mediaworks.mediaworks.care.alpha'
[XCUITestDriver@3cfc (287bdde9)] Event 'resetStarted' logged at 1712839743860 (14:49:03 GMT+0200 (Central European Summer Time))
[XCUITest] Reset: running ios real device reset flow
[XCUITestDriver@3cfc (287bdde9)] Event 'resetComplete' logged at 1712839743860 (14:49:03 GMT+0200 (Central European Summer Time))
[XCUITestDriver@3cfc (287bdde9)] Using WDA path: '/Users/ishan.nehu/.appium/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent'
[XCUITestDriver@3cfc (287bdde9)] Using WDA agent: '/Users/ishan.nehu/.appium/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj'
[XCUITest] Crash reports root '/Users/ishan.nehu/Library/Logs/CrashReporter/MobileDevice/9 iPhone 12 mini' does not exist. Got nothing to gather.
[XCUITestDriver@3cfc (287bdde9)] Event 'logCaptureStarted' logged at 1712839743981 (14:49:03 GMT+0200 (Central European Summer Time))
[XCUITestDriver@3cfc (287bdde9)] Setting up real device
[XCUITest] Verifying application platform
[XCUITest] CFBundleSupportedPlatforms: ["iPhoneOS"]
[XCUITestDriver@3cfc (287bdde9)] App 'de.mediaworks.mediaworks.care.alpha' is not installed yet or it has an offload and cannot be detected, which might keep the local data.
[XCUITest] Installing '/var/folders/fn/97l7k3d928z34hn8jsgxn_1r0000gn/T/2024311-61079-zo8ck1.otq2/care.app' on device with UUID '00008101-001D444A1EC2001E'...
[XCUITest] Using 'serial' app deployment strategy. You could change it by providing another value to the 'appInstallStrategy' capability
[XCUITest] Getting bundle ID from app '/var/folders/fn/97l7k3d928z34hn8jsgxn_1r0000gn/T/2024311-61079-zo8ck1.otq2/care.app': 'de.mediaworks.mediaworks.care.alpha'
[XCUITest] Successfully scanned the tree structure of '/var/folders/fn/97l7k3d928z34hn8jsgxn_1r0000gn/T/2024311-61079-zo8ck1.otq2/care.app'
[XCUITest] Got 657 folders and 6083 files to push
[XCUITestDriver@3cfc (287bdde9)] Parsed BUILD_DIR configuration value: '/Users/ishan.nehu/Library/Developer/Xcode/DerivedData/WebDriverAgent-bnqaucvleszuxcdcergprpefpqdg/Build/Products'
[XCUITestDriver@3cfc (287bdde9)] Got derived data root: '/Users/ishan.nehu/Library/Developer/Xcode/DerivedData/WebDriverAgent-bnqaucvleszuxcdcergprpefpqdg'
[XCUITest] Successfully created the remote folder structure (658 items)
[XCUITest] Proceeding to serial files push
[XCUITest] Successfully pushed 657 folders and 6083 files within 108811ms
[XCUITest] A new application installation is going to be performed
[XCUITest] Error installing app '/var/folders/fn/97l7k3d928z34hn8jsgxn_1r0000gn/T/2024311-61079-zo8ck1.otq2/care.app': Failed to receive any data within the timeout: 60000
[XCUITest] Falling back to 'ios-deploy' usage
[HTTP] <-- POST /session - - ms - -
[HTTP]
[XCUITestDriver@3cfc (287bdde9)] {}
[DevCon Factory] Releasing connections for 00008101-001D444A1EC2001E device on any port number
[DevCon Factory] No cached connections have been found
[XCUITest] Did not find the temporary XCTest logs root at '/var/folders/fn/97l7k3d928z34hn8jsgxn_1r0000gn/T/com.apple.dt.XCTest*/'
[XCUITest] Cleaning test logs in '/Users/ishan.nehu/Library/Developer/Xcode/DerivedData/WebDriverAgent-bnqaucvleszuxcdcergprpefpqdg/Logs' folder
[XCUITest] Clearing log files
[XCUITest] Deleting '/Users/ishan.nehu/Library/Developer/Xcode/DerivedData/WebDriverAgent-bnqaucvleszuxcdcergprpefpqdg/Logs'. Freeing 20K.
[XCUITest] Finished clearing log files
[AppiumDriver@e7d4] Event 'newSessionStarted' logged at 1712840128377 (14:55:28 GMT+0200 (Central European Summer Time))
[AppiumDriver@e7d4] Encountered internal error running command: Error: Could not install '/var/folders/fn/97l7k3d928z34hn8jsgxn_1r0000gn/T/2024311-61079-zo8ck1.otq2/care.app':
[AppiumDriver@e7d4] - Failed to receive any data within the timeout: 60000
[AppiumDriver@e7d4] - 2024-04-11 14:55:28.344 ios-deploy[63651:10370216] [ !! ] Error 0xe800002d: Could not send a message to the device. AMDeviceStopSession(device)
[AppiumDriver@e7d4]
[AppiumDriver@e7d4] at IOSDeploy.install (/Users/ishan.nehu/.appium/node_modules/appium-xcuitest-driver/lib/ios-deploy.js:104:17)
[AppiumDriver@e7d4] at installToRealDevice (/Users/ishan.nehu/.appium/node_modules/appium-xcuitest-driver/lib/real-device-management.js:85:5)
[AppiumDriver@e7d4] at XCUITestDriver.installAUT (/Users/ishan.nehu/.appium/node_modules/appium-xcuitest-driver/lib/driver.js:1682:9)
[AppiumDriver@e7d4] at XCUITestDriver.start (/Users/ishan.nehu/.appium/node_modules/appium-xcuitest-driver/lib/driver.js:598:5)
[AppiumDriver@e7d4] at XCUITestDriver.createSession (/Users/ishan.nehu/.appium/node_modules/appium-xcuitest-driver/lib/driver.js:401:7)
[AppiumDriver@e7d4] at AppiumDriver.createSession (/usr/local/lib/node_modules/appium/lib/appium.js:717:35)
from appium.
Thanks @mykola-mokhnach, I updated the newCommandTimeout to 5 mins but that also didn't help. Or are you taking about some other capability.?
from appium.
I just wanted to add one more observation while it tries to install the app using the serial push and before failing back to ios-deploy. This is how it looks on the device.
from appium.
And then after it falls back to iOS deploy it installs the app correctly. But sadly the process gets terminated
from appium.
Such an icon could occur when an installation hasn't been completed.
[BaseDriver] The application (460.38 MB) has been downloaded to
Btw, how long did it take to install the app with vanilla ios-deploy
for such a large file size? (Not via Appium to check the duration)
from appium.
Hey @mykola-mokhnach. Thank you for pushing the changes but unfortunately i couldn't install this version. I could only go upto XCUITestDriver (v6.0.2).
from appium.
Sadly it didn't work but we can see some exception logs. However it still installed the app on the device :) but the session got disconnected :(
[HTTP] {"capabilities":{"alwaysMatch":{"appium:platformName":"iOS","appium:automationName":"XCUITest","appium:udid":"00008101-001D444A1EC2001E","appium:deviceName":"9 iPhone 12 mini","appium:platformVersion":"17.3","appium:clearSystemFiles":true,"appium:app":"https://storage.web.mediaworks.de/apps/category/1/app/773026/download?authorization=1fDnX7ciitQxxxxxx","appium:newCommandTimeout":3600,"appium:connectHardwareKeyboard":true},"firstMatch":[{}]},"desiredCapabilities":{"appium:platformName":"iOS","appium:automationName":"XCUITest","appium:udid":"00008101-001D444A1EC2001E","appium:deviceName":"9 iPhone 12 mini","appium:platformVersion":"17.3","appium:clearSystemFiles":true,"appium:app":"https://storage.web.mediaworks.de/apps/category/1/app/773026/download?authorization=1fDnX7ciitQxxxxxx","appium:newCommandTimeout":3600,"appium:connectHardwareKeyboard":true}}
[AppiumDriver@0aac] Calling AppiumDriver.createSession() with args: [{"appium:platformName":"iOS","appium:automationName":"XCUITest","appium:udid":"00008101-001D444A1EC2001E","appium:deviceName":"9 iPhone 12 mini","appium:platformVersion":"17.3","appium:clearSystemFiles":true,"appium:app":"https://storage.web.mediaworks.de/apps/category/1/app/773026/download?authorization=1fDnX7ciitQxxxxxx","appium:newCommandTimeout":3600,"appium:connectHardwareKeyboard":true},null,{"alwaysMatch":{"appium:platformName":"iOS","appium:automationName":"XCUITest","appium:udid":"00008101-001D444A1EC2001E","appium:deviceName":"9 iPhone 12 mini","appium:platformVersion":"17.3","appium:clearSystemFiles":true,"appium:app":"https://storage.web.mediaworks.de/apps/category/1/app/773026/download?authorization=1fDnX7ciitQxxxxxx","appium:newCommandTimeout":3600,"appium:connectHardwareKeyboard":true},"firstMatch":[{}]}]
[AppiumDriver@0aac] Event 'newSessionRequested' logged at 1712918102334 (12:35:02 GMT+0200 (Central European Summer Time))
[BaseDriver] The capabilities ["platformName"] are standard capabilities and do not require "appium:" prefix
[Appium] Attempting to find matching driver for automationName 'XCUITest' and platformName 'iOS'
[Appium] The 'xcuitest' driver was installed and matched caps.
[Appium] Will require it at /Users/ishan.nehu/.appium/node_modules/appium-xcuitest-driver
[Appium] Requiring driver at /Users/ishan.nehu/.appium/node_modules/appium-xcuitest-driver/build/index.js
[AppiumDriver@0aac] Appium v2.5.2 creating new XCUITestDriver (v7.11.3) session
[AppiumDriver@0aac] Checking BaseDriver versions for Appium and XCUITestDriver
[AppiumDriver@0aac] Appium's BaseDriver version is 9.5.3
[AppiumDriver@0aac] XCUITestDriver's BaseDriver version is 9.5.3
[XCUITestDriver@75cb] Creating session with W3C capabilities: {
[XCUITestDriver@75cb] "alwaysMatch": {
[XCUITestDriver@75cb] "platformName": "iOS",
[XCUITestDriver@75cb] "appium:automationName": "XCUITest",
[XCUITestDriver@75cb] "appium:udid": "00008101-001D444A1EC2001E",
[XCUITestDriver@75cb] "appium:deviceName": "9 iPhone 12 mini",
[XCUITestDriver@75cb] "appium:platformVersion": "17.3",
[XCUITestDriver@75cb] "appium:clearSystemFiles": true,
[XCUITestDriver@75cb] "appium:app": "https://storage.web.mediaworks.de/apps/category/1/app/773026/download?authorization=1fDnX7ciitQxxxxxx",
[XCUITestDriver@75cb] "appium:newCommandTimeout": 3600,
[XCUITestDriver@75cb] "appium:connectHardwareKeyboard": true
[XCUITestDriver@75cb] },
[XCUITestDriver@75cb] "firstMatch": [
[XCUITestDriver@75cb] {}
[XCUITestDriver@75cb] ]
[XCUITestDriver@75cb] }
[XCUITestDriver@75cb (7df71fbb)] Session created with session id: 7df71fbb-5c9e-40db-91e8-f9a7c1b074ef
[XCUITest] Current user: 'ishan.nehu'
[XCUITestDriver@75cb (7df71fbb)] Available real devices: 00008101-001D444A1EC2001E
[XCUITestDriver@75cb (7df71fbb)] Creating iDevice object with udid '00008101-001D444A1EC2001E'
[XCUITestDriver@75cb (7df71fbb)] Determining device to run tests on: udid: '00008101-001D444A1EC2001E', real device: true
[XCUITestDriver@75cb (7df71fbb)] Event 'xcodeDetailsRetrieved' logged at 1712918102365 (12:35:02 GMT+0200 (Central European Summer Time))
[BaseDriver] Using downloadable app 'https://storage.web.mediaworks.de/apps/category/1/app/773026/download?authorization=1fDnX7ciitQxxxxxx'
[BaseDriver] Etag: undefined
[BaseDriver] Last-Modified: Fri, 12 Apr 2024 09:40:49 GMT
[BaseDriver] Cache-Control: max-age=0, must-revalidate, private
[BaseDriver] Content-Type: application/octet-stream
[BaseDriver] Content-Disposition: attachment; filename="compwork.ipa"
[BaseDriver] The application (463.27 MB) has been downloaded to '/var/folders/fn/97l7k3d928z34hn8jsgxn_1r0000gn/T/2024312-1228-oml6my.v2jlf/compwork.ipa' in 46.262s
[BaseDriver] Approximate download speed: 10.01 MB/s
[XCUITestDriver@75cb (7df71fbb)] Found 1 bundle in 'compwork.ipa': Payload/compwork.app
[XCUITestDriver@75cb (7df71fbb)] 'Payload/compwork.app' is the resulting application bundle selected from '/var/folders/fn/97l7k3d928z34hn8jsgxn_1r0000gn/T/2024312-1228-oml6my.v2jlf/compwork.ipa'
[XCUITestDriver@75cb (7df71fbb)] Event 'appConfigured' logged at 1712918158092 (12:35:58 GMT+0200 (Central European Summer Time))
[XCUITest] Checking whether app '/var/folders/fn/97l7k3d928z34hn8jsgxn_1r0000gn/T/2024312-1228-xgl9b1.pqcta/compwork.app' is actually present on file system
[XCUITest] App is present
[XCUITest] Getting bundle ID from app '/var/folders/fn/97l7k3d928z34hn8jsgxn_1r0000gn/T/2024312-1228-xgl9b1.pqcta/compwork.app': 'de.mediaworks.mediaworks.compwork.alpha'
[XCUITestDriver@75cb (7df71fbb)] Event 'resetStarted' logged at 1712918158095 (12:35:58 GMT+0200 (Central European Summer Time))
[XCUITestDriver@75cb (7df71fbb)] Reset: running ios real device reset flow
[XCUITestDriver@75cb (7df71fbb)] Event 'resetComplete' logged at 1712918158095 (12:35:58 GMT+0200 (Central European Summer Time))
[XCUITestDriver@75cb (7df71fbb)] Using WDA path: '/Users/ishan.nehu/.appium/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent'
[XCUITestDriver@75cb (7df71fbb)] Using WDA agent: '/Users/ishan.nehu/.appium/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj'
[XCUITest] Crash reports root '/Users/ishan.nehu/Library/Logs/CrashReporter/MobileDevice/9 iPhone 12 mini' does not exist. Got nothing to gather.
[XCUITestDriver@75cb (7df71fbb)] Event 'logCaptureStarted' logged at 1712918158219 (12:35:58 GMT+0200 (Central European Summer Time))
[XCUITestDriver@75cb (7df71fbb)] Setting up real device
[XCUITest] Verifying application platform
[XCUITest] CFBundleSupportedPlatforms: ["iPhoneOS"]
[XCUITestDriver@75cb (7df71fbb)] App 'de.mediaworks.mediaworks.compwork.alpha' is not installed yet or it has an offload and cannot be detected, which might keep the local data.
[XCUITestDriver@75cb (7df71fbb)] Installing '/var/folders/fn/97l7k3d928z34hn8jsgxn_1r0000gn/T/2024312-1228-xgl9b1.pqcta/compwork.app' on the device with UUID '00008101-001D444A1EC2001E'...
[XCUITestDriver@75cb (7df71fbb)] Using 'serial' app deployment strategy. You could change it by providing another value to the 'appInstallStrategy' capability
[XCUITest] Getting bundle ID from app '/var/folders/fn/97l7k3d928z34hn8jsgxn_1r0000gn/T/2024312-1228-xgl9b1.pqcta/compwork.app': 'de.mediaworks.mediaworks.compwork.alpha'
[XCUITest] Successfully scanned the tree structure of '/var/folders/fn/97l7k3d928z34hn8jsgxn_1r0000gn/T/2024312-1228-xgl9b1.pqcta/compwork.app'
[XCUITest] Got 657 folders and 6089 files to push
[XCUITest] Successfully created the remote folder structure (658 items)
[XCUITest] Proceeding to serial files push
[XCUITestDriver@75cb (7df71fbb)] Parsed BUILD_DIR configuration value: '/Users/ishan.nehu/Library/Developer/Xcode/DerivedData/WebDriverAgent-bnqaucvleszuxcdcergprpefpqdg/Build/Products'
[XCUITestDriver@75cb (7df71fbb)] Got derived data root: '/Users/ishan.nehu/Library/Developer/Xcode/DerivedData/WebDriverAgent-bnqaucvleszuxcdcergprpefpqdg'
[XCUITest] Successfully pushed 657 folders and 6089 files within 102831ms
[XCUITestDriver@75cb (7df71fbb)] A new application installation is going to be performed. Will timeout in 377058.228208 ms
[XCUITestDriver@75cb (7df71fbb)] Error installing app '/var/folders/fn/97l7k3d928z34hn8jsgxn_1r0000gn/T/2024312-1228-xgl9b1.pqcta/compwork.app': Unexpected data: {"Error":"ApplicationVerificationFailed","ErrorDetail":-402620393,"ErrorDescription":"Failed to verify code signature of /var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.fYQbdS/extracted/de.mediaworks.mediaworks.compwork.alpha.app : 0xe8008017 (A signed resource has been added, modified, or deleted.)"}
[XCUITestDriver@75cb (7df71fbb)] Falling back to 'ios-deploy' usage
[HTTP] <-- POST /session - - ms - -
[HTTP]
[XCUITestDriver@75cb (7df71fbb)] {}
[DevCon Factory] Releasing connections for 00008101-001D444A1EC2001E device on any port number
[DevCon Factory] No cached connections have been found
[XCUITest] Did not find the temporary XCTest logs root at '/var/folders/fn/97l7k3d928z34hn8jsgxn_1r0000gn/T/com.apple.dt.XCTest*/'
[XCUITest] Cleaning test logs in '/Users/ishan.nehu/Library/Developer/Xcode/DerivedData/WebDriverAgent-bnqaucvleszuxcdcergprpefpqdg/Logs' folder
[XCUITest] Clearing log files
[XCUITest] Deleting '/Users/ishan.nehu/Library/Developer/Xcode/DerivedData/WebDriverAgent-bnqaucvleszuxcdcergprpefpqdg/Logs'. Freeing 192K.
[XCUITest] Finished clearing log files
[AppiumDriver@0aac] Event 'newSessionStarted' logged at 1712918525594 (12:42:05 GMT+0200 (Central European Summer Time))
[AppiumDriver@0aac] Encountered internal error running command: Error: Could not install '/var/folders/fn/97l7k3d928z34hn8jsgxn_1r0000gn/T/2024312-1228-xgl9b1.pqcta/compwork.app':
[AppiumDriver@0aac] - Unexpected data: {"Error":"ApplicationVerificationFailed","ErrorDetail":-402620393,"ErrorDescription":"Failed to verify code signature of /var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.fYQbdS/extracted/de.mediaworks.mediaworks.compwork.alpha.app : 0xe8008017 (A signed resource has been added, modified, or deleted.)"}
[AppiumDriver@0aac] - 2024-04-12 12:42:05.515 ios-deploy[2234:19558] [ !! ] Error 0xe800002d: Could not send a message to the device. AMDeviceStopSession(device)
[AppiumDriver@0aac]
[AppiumDriver@0aac] at RealDevice.install (/Users/ishan.nehu/.appium/node_modules/appium-xcuitest-driver/lib/real-device.js:141:17)
[AppiumDriver@0aac] at XCUITestDriver.installToRealDevice (/Users/ishan.nehu/.appium/node_modules/appium-xcuitest-driver/lib/real-device-management.js:43:5)
[AppiumDriver@0aac] at XCUITestDriver.installAUT (/Users/ishan.nehu/.appium/node_modules/appium-xcuitest-driver/lib/driver.js:1671:9)
[AppiumDriver@0aac] at XCUITestDriver.start (/Users/ishan.nehu/.appium/node_modules/appium-xcuitest-driver/lib/driver.js:611:5)
[AppiumDriver@0aac] at XCUITestDriver.createSession (/Users/ishan.nehu/.appium/node_modules/appium-xcuitest-driver/lib/driver.js:419:7)
[AppiumDriver@0aac] at AppiumDriver.createSession (/usr/local/lib/node_modules/appium/lib/appium.js:717:35)
from appium.
[XCUITestDriver@75cb (7df71fbb)] Error installing app '/var/folders/fn/97l7k3d928z34hn8jsgxn_1r0000gn/T/2024312-1228-xgl9b1.pqcta/compwork.app': Unexpected data: {"Error":"ApplicationVerificationFailed","ErrorDetail":-402620393,"ErrorDescription":"Failed to verify code signature of /var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.fYQbdS/extracted/de.mediaworks.mediaworks.compwork.alpha.app : 0xe8008017 (A signed resource has been added, modified, or deleted.)"}
This means that your app is probably damaged or signed improperly, so it cannot be installed.
from appium.
Thanks @mykola-mokhnach . But the app gets installed perfectly :thinking_face: . What I do,
Using the Appium inspector I provide these capabilities,
{
"appium:platformName": "iOS",
"appium:automationName": "XCUITest",
"appium:udid": "00008101-001D444A1EC2001E",
"appium:deviceName": "9 iPhone 12 mini",
"appium:platformVersion": "17.3",
"appium:clearSystemFiles": true,
"appium:app": "https://storage.web.mediaworks.de/apps/category/1/app/773026/download?authorization=1fDnX7ciitQxxxxxx"
}
In the Appium logs, I see that,
- It tries to install the app using serial push but only manages to partially install the app.
- Then it switches to ios-deploy even though I haven't specified anything.
- The session terminates seconds before the app gets installed to the device (It install the app correctly even after the session fails). This is something I don't understand. So I guess the app is not damaged. It might be due to signing. Can you kindly let me know how I can do that. Thank you for your help
from appium.
I would try something like https://medium.com/testableapple/ios-application-verification-failed-d806d83ffdae, but generally it's not something that could be fixed in the driver itself
from appium.
Thanks @mykola-mokhnach and @KazuCocoa for your help. I understand the issue is with the app signing. But if i launch the driver again after the app installs it works fine. I am unable to understand why it only blocks the scenario where we install and launch the app but doesn't block scenarios in which the app in pre-installed.? Thank you for your help :)
from appium.
doesn't block scenarios in which the app in pre-installed
Because the installed app is already signed properly. Usually, installation succeeds with a valid sign for the device. Then, Failed to verify code signature of does not block the installation
from appium.
Thank you @KazuCocoa @mykola-mokhnach . I will close this ticket. As of now i create a new driver session as a workaround and this works fine with that.
from appium.
Related Issues (20)
- Original error: No Chromedriver found that can automate Chrome '121.0.6167'. HOT 21
- [Feat]: Remove npmlog dependency because it's no longer supported
- [Feat]: Remove inflight dependency because it's no longer supported HOT 7
- when app starts and app home page comes, appium can only locate systemui, I need locate app home page HOT 2
- Original error: Unable to launch WebDriverAgent because of xcodebuild failure: Command 'carthage bootstrap --platform iOS' exited with code 1 HOT 4
- [Feat]: add company logo icons in SPONSORS.md HOT 5
- [Feat]: Support for JavaFX / Swing Desktop applications HOT 1
- iOS 17 always get driver-to-platform version mismatch on Real Devices HOT 6
- bug: iOS - XCUITest - WDA crash during parallel Appium automation HOT 6
- Appium 2.6.0 error: selenium.common.exceptions.WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: Cannot read properties of null (reading 'unpipe') HOT 4
- bug: Appium v2 does't install the newer version of the app package. HOT 4
- [Feat]: Appium to generate .gcov, .gcna, .gcda files for iOS apps code coverage HOT 2
- Appium can't reach elements in iOS source tree and it works fine in android (with the same codebase) HOT 2
- appium 2.7.0 runtime failure HOT 1
- [Feat]: release script update license in logger/package.json to Apache-2.0 from ISC
- [Feat]: document all API endpoints HOT 6
- Appium taking 10-15 minutes in switching to webview context and getting current url HOT 10
- [Feat]: use ~ for dependencies in appium main package instead of ^ HOT 9
- WebDriverAgent v8.7.2 cause Appium touch error HOT 1
- [Feat]:Setting GPS address and “Shake” cell phone function does not work. HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from appium.