I'm trying to install / run an iOS app from a test flight public url when using appium desktop but get the following error when starting the session:
"An unknown server-side error occurred while processing the command. Original error: Could not install app: 'ENOTDIR: not a directory, scandir '/var/folders/[DIRECTORY_PATH]/[RANDOM_GENERATED_CODE].app''"
The desired capabilities I provided to appium desktop are shown below:
{
"automationName": "XCUITest",
"platformName": "iOS",
"deviceName": "[DEVICE_NAME]",
"platformVersion": "13.3",
"xcodeOrgId": "[XCODE_ORG_ID]",
"xcodeSigningId": "iPhone Developer",
"udid": "[DEVICE_UDID]",
"bundleId": "[APP_BUNDLE_ID]",
"updatedWDABundleId": "[WEDRIVER_AGENT_RUNNER]",
"app": "https://testflight.apple.com/join/[RANDOM_GENERATED_CODE]"
}
Does appium support this functionality? If so what am i missing?
You should try to download the app before setting up Appium. (with bash script or Java itself)
After downloading, set the local URL in the capabilities.
This error:
install app: 'ENOTDIR: not a directory, scandir '/var/folders/[DIRECTORY_PATH]/[RANDOM_GENERATED_CODE].app''"
Seems to indicate you are pointing to a file, not a directory, which is what the executing code expected. Are you supposed to expand the artifacts from TestFlight before using them? Perhaps something is wrong with the [DirectoryPath] you specified. What's actually at that location after the failure occurs?
Related
I have a problem to communicate between my macmini and my iphone 7 (version 11.4) with Appium. My build is successfull on xCode and the version of Appium is the last 1.18.0-1.
My capabilities in Appium are :
{
"platformName": "iOS",
"platformVersion": "11.4",
"bundleId": "com.altran.deltadore.tydom",
"deviceName": "iPhone7",
"udid": "0afc3d4352c3f2d720a9ffca2d971b118b9a7e17",
"xcodeSigningId": "jerome.thomoux#altran.com",
"xcodeOrgId": "WUQ4U559T2",
"automation_name": "XCUITest"
}
The error message in Appium when I start the session is :
An unknown server-side error occurred while processing the command. Original error: App with bundle identifier 'com.altran.deltadore.tydom' unknown
Add one more capability as :
"app" : "Path_to_your_ipa_file";
Secondly, you have to add udid while signing the ipa build for the devices you have to use the build.
Here's the steps of problem I am facing:
**Predefined: My Android SDK path and JDK path has been given in config section. Also "Session override" is checked **
I'm opening the Appium Client.
Starting the server.
Starting"Inspector session" Choosing the previously saved device with capatalities.
Choosing automatic server.
Trying to start thesession.
After sometime, I'm ending seeing this message:
Error
An unknown server-side error occurred while processing the command. Original error: zipAlignApk failed. Original error: spawn EPERM. Stdout: 'undefined'; Stderr: 'undefined'
The capabilites I've provided:
{
"deviceName": "",
"platformName": "",
"platformVersion": "",
"appPackage": "",
"appActivity": ""
}
Note: I have used appium desktop in same pc before... But somehow seeing this message now... In between, I've done several Android Studio installation.
enter image description here
While I am running the JsonScript in the appium inspector
Environment used:
"platformName": "iOS",
"deviceName": "iPhone Simulator",
"platformVersion": "12.1",
"app": "/../../...ipa",
"automationName":
"XCUITest",
"noReset": true
It is not starting the appium inspector and throwing the error
An unknown server-side error occurred while processing the command.
Original error: Bad app: /../../. App(ipa) paths need to be absolute
or an URL to a compressed file
The simple way is create the app folder in the project root folder. Move your filename.ipa file inside app folder. Your app path will be
"app": "/app/filename.ipa"
I'm new to ios appium and trying to use appium for app testing which i did not have the source code nor ios developer account, the app is downloaded from crashlytics.
I've tried to modify the certificate for webdriveragent with my personal account but failed. And i saw the document from appium that i should able to use appium with only "app" or "bundleid" capability so i tried to remove the "app" then got another err.
Please advise, thank you in advance.
My capabilities set as below
capabilities['platformName'] = 'iOS'
capabilities['automationName'] = 'XCUITest'
capabilities['platformVersion'] = '11.4'
capabilities['deviceName'] = 'iPhone X'
capabilities['udid'] = 'my phone'
capabilities['bindleId'] = 'app.bundleId'
capabilities['app'] = '/pathtomyapp'
Appium log output
selenium.common.exceptions.WebDriverException An unknown server-side
error occurred while processing the command. Original error: Unable to
launch WebDriverAgent because of xcodebuild failure: "xcodebuild
failed with code 65".
If I remove the "app" from capablities then I get following error
selenium.common.exceptions.WebDriverException: Message: An unknown
server-side error occurred while processing the command. Original
error: The desired capabilities must include either an app or a
bundleId for iOS
https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md
a very comprehensive tutorial how to deal with your problem, you are missing
desired_caps['xcodeOrgId'] = 'YOURDEVID'
desired_caps['xcodeSigningId'] = "iPhone Developer"
I believe that this error normally happens because the wda is in the wrong directory. Which version of appium is this? If it's above 1.7.2 then you'll need to add the capabilities usePrebuiltWDA set to true and derivedDataPath set to the path of the derived data folder of the wda.
https://github.com/appium/appium-xcuitest-driver/blob/master/README.md
Hth
James
Our project is failing to run on iOS simulator in the new Visual Studio. This is the following error I get:
Severity Code Description Project File Line Suppression State
Error Remote build error from the build server http://<MY_IP>:3000/cordova - Build failed with error Error code 65 for command: xcodebuild with args: -xcconfig,/Users/developer/.taco_home/remote-builds/taco-remote/builds/46767/cordovaApp/platforms/ios/cordova/build-release.xcconfig,-workspace,Announce.xcworkspace,-scheme,Announce,-configuration,Release,-sdk,iphonesimulator,-destination,platform=iOS Simulator,name=iPhone 5s,build,CONFIGURATION_BUILD_DIR=/Users/developer/.taco_home/remote-builds/taco-remote/builds/46767/cordovaApp/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/developer/.taco_home/remote-builds/taco-remote/builds/46767/cordovaApp/platforms/ios/build/sharedpch ApbClient 1
It might have to do with the Cordova version. On new VS2017 the default Cordova version is 6.3.1 or Global Cordova 6.5.0. On VS2015 we were using Cordova 5.4.1.
Any ideas on what is causing this error? I have tried a bunch of things suggested in old StackOverflow questions but none of it seems to work. It was working fine on 2015, we have development team and everything set up. Could it be something I need to do on xCode? Any help is appreciated.
since xcode 8 they change the deploy politics, not sure it related to emulators but with actual device I had the same issue. It happened because provisioning profile is not set up properly.
- https://dpogue.ca/articles/cordova-xcode8.html, everything you need is configure the build.json file
my file is:
{
"ios": {
"debug": {
"developmentTeam": "XXXXXXXXXX",
"provisioningProfile": "ProfileName"
},
"release": {
"codeSignIdentity": "XXXXXXXx",
"developmentTeam": "XXXXX",
"packageType": "ad-hoc",
"provisioningProfile": "ProfileName"
}
}
}
anyway right now I got the 72 error,
xcrun: error: unable to find utility "PackageApplication", not a developer tool or in PATH