Reputation: 1139
So i have iPhone 8
with the latest version (12.2) and MAC + Xcode
(also latest versions)
I follow [this tutorial][1] and after insert this Appium desired capabilities
:
{
"app": "/Users/myUser/Documents/ipa_files/igrocket_v85.0_T3.3.2.ipa",
"udid": "3b5c144433dacabd34311251d33bd2afa661be47",
"automationName": "XCUITest",
"platformName": "iOS",
"deviceName": "iPhone 8",
"platformVersion": "12.2",
"noReset": true
}'
I got this error
:
iOS-deploy could not install application exited with code 253
Appium log
**[XCUITest] Error: Could not install app: 'Command 'ios-deploy --id 3b5c144433dacabd74d93251d33bd2afa661be47 --bundle /var/folders/b9/sq2txlwd7b33njkgq7qgffhw0000gn/T/2019229-1728-as7h53.ceh0m/Payload/Instagram.app' exited with code 253'
[XCUITest] at IOSDeploy.install (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/lib/ios-deploy.js:40:13)
[XCUITest] at process._tickCallback (internal/process/next_tick.js:68:7)
[XCUITest] Not clearing log files. Use `clearSystemFiles` capability to turn on.
[iOSLog] Stopping iOS log capture
[BaseDriver] Event 'newSessionStarted' logged at 1553871674896 (18:01:14 GMT+0300 (IDT))
[MJSONWP] Encountered internal error running command: Error: Could not install app: 'Command 'ios-deploy --id 3b5c144433dacabd34311251d33bd2afa661be47--bundle /var/folders/b9/sq2txlwd7b33njkgq7qgffhw0000gn/T/2019229-1728-as7h53.ceh0m/Payload/Instagram.app' exited with code 253'
[MJSONWP] at IOSDeploy.install (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/lib/ios-deploy.js:40:13)
[MJSONWP] at process._tickCallback (internal/process/next_tick.js:68:7)
[HTTP] <-- POST /wd/hub/session 500 44559 ms - 355
[HTTP]
[HTTP] --> DELETE /wd/hub/session
[HTTP] {}
[HTTP] No route found. Setting content type to 'text/plain**
What could cause this problem ?
Upvotes: 2
Views: 1965
Reputation: 985
Error 253 occurs when your application has not been code signed properly. Look in the build settings and associate your Developer Certificate with the Code Signing section of the application under test. Note that both the application being tested AND the Appium XCUITEST project must both be signed with the same certificate to be able to interact with, and thus automate, testing of your application.
Edit: Unfortunately, I no longer have access to a Mac, and thus I can best link you to how to do this.
Open the projects in XCode, and then go to the project settings as seen here:
Image url: https://i.sstatic.net/IH6gN.jpg
Here is information on what this all means and how to do it
Edit #2: I'm fairly confident that what you are trying to do is impossible. Let me know if you are employee of Instagram. But it doesn't seem like you are. And you are trying to automate an Instagram application that you do not own; on apple devices.
Apple security does not allow this. You MUST sign both the WebDriverAgent and application under test with the same developer certificate. It is impossible to use XCUITest API's without the signed certificates that prove you are the owner and purveyor of the app being tested.
Apple is extremely restrictive about this.
Upvotes: 2