I'm trying to open the application from Appium server and getting the below mentioned error.
An unknown server-side error occurred while processing the command.
Original error: Unknown device or simulator UDID:
'046e4469d6cb14ff57e378599bd4b1d09390472b'
{
"platformName": "iOS",
"deviceName": "iPad",
"automationName": "XCUITest",
"udid": "046e4469d6cb14ff57e378599bd4b1d09390472b",
"bundleId": "com.***",
"platformVersion": "11.2.6",
"app": "/Users/***/***.ipa"
}
even tried with app location on my Mac machine but getting the same error.
xcode version:9.2
ios version:11.2.6
Mac OS version:10.13.3
Appium server version:1.7.2
configuration which is required -
{
“platformName”: “iOS”,
“platformVersion”: “10.2.1",
“deviceName”: “------”,
“udid”: “fdbe0d55ced1fd6fa842681b6a058438573fb762",
“app”: “/Users/----/---/---/---.ipa”,
“automationName”: “XCUITest”
}
Based on app path, it will find the app to be loaded, also you have to provide the iOS version(XCode ios simulator version for simulator/ device OS version for device).
here is the iOS cap config,
DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability("deviceName", "iPhone");
capabilities.setCapability("platformName", "iOS");
capabilities.setCapability("automationName", "XCUITest");
capabilities.setCapability("udid", “******************************”);
capabilities.setCapability("bundleId”,”********”);
capabilities.setCapability("noReset", true);
capabilities.setCapability("app", “*******app path******“);
driver = new IOSDriver(new URL("http://0.0.0.0:4723/wd/hub"),capabilities);
please make sure the UDID you have mentioned it correct ,
and you do need to add "WebDriver Agent" app in your iOS device.
Related
Appium - iOS - Macbook M1 chip
Appium inspector: 1.21.0
Encountered internal error running command: Error: Simulator architecture is unsupported by the '/var/folders/02/pmtd5x_51_34lk5hp_1h4c000000gn/T/2022327-78661-1k3io4.g3jny/------.app' application. Make sure the correct deployment target has been selected for its compilation in Xcode.
{
"platformName": "iOS",
"platformVersion": "15.0",
"deviceName": "iPhone 12",
"app": "/Users/sumit.kathuria/Documents/7eeb29ec-6363-4ebd-ba8f-5496edd414d1.ipa",
"automationName": "XCUITest",
"version": "1.21.0"
}
enter image description here
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.
I am running on Appium 1.7.2 and using a iPhone 6s on 11.2.5 OS. I am trying to create a simple test to target a real iOS device vs a simulator but each time I run the code Appium/xCode will open a simulator and use that instead of the real device.
How do I get appium to use the real device. I have tried supplying the UUID of the device without luck.
Thank you,
Gradle
compile group: 'io.appium', name: 'java-client', version:'6.0.0-BETA2'
compile group: 'org.seleniumhq.selenium', name: 'selenium-server', version:'3.8.1'
compile group: 'org.seleniumhq.selenium', name: 'selenium-remote-driver', version:'3.8.1'
compile group: 'org.seleniumhq.selenium', name: 'selenium-java', version:'3.8.1'
Java Code
DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability("platformName", "iOS");
capabilities.setCapability("deviceName", "iPhone 6s");
capabilities.setCapability("platformVersion", "11.2");
//capabilities.setCapability("app", "https://s3.amazonaws.com/appium/TestApp8.4.app.zip");
capabilities.setCapability("browserName", "Safari");
capabilities.setCapability("uuid", "26deaa8eb5003b3d56a561ada2fcff2174b00df1");
capabilities.setCapability("deviceOrientation", "portrait");
capabilities.setCapability("browserName", "safari");
capabilities.setCapability("automationName", "XCUITest");
If you want to run Appium/XCUITest on real device, follow this guideline
The reason why appium takes simulator is that you did not provide xcodeOrgId & xcodeSigningId capabilities:
{
"xcodeOrgId": "<Team ID in apple dev account>",
"xcodeSigningId": "iPhone Developer"
}
You might face XCUITest xcodebuild exited with code '65', so follow the guide/search on stackoverflow how to fix setup manually.
Good luck!
To test ios real devices , below capabilities are required
app=${app}
version=${version}
platform=${platform}
deviceName=${deviceName}
udid=${udid}
platformName=${platformName}
newCommandTimeout=2500
name=${name}
automationName=${automationName}
xcodeOrgId=${xcodeOrgId}
xcodeSigningId=${xcodeSigningId}
usePrebuiltWDA=${usePrebuiltWDA}
Platform compatibility :
Mac OS X 10.10 or higher, 10.11.1 recommended **[Using 10.10.5]**
XCode >= 6.0, 7.1.1 recommended **[Using 7]**
Apple Developer Tools (iPhone simulator SDK, command line tools)
Appium Server **[Using v1.5.3]**
Node.js **[Using V4.5.0]**
Don't actually know which is the perfect combination of all the SDK/requirements for configuring the Appium in MAC system.
And getting an error in Appium logcat:
Unable to load node configuration file to register with grid.
My code is
#BeforeTest
public void preSetup() throws MalformedURLException{
DesiredCapabilities desiredCapabilities = new DesiredCapabilities();
File f=new File("/Users/nandini/Documents/AppiumWorkSpace/One20Automation/app/One20.app");
desiredCapabilities.setCapability(MobileCapabilityType.PLATFORM_NAME, "iOS");
desiredCapabilities.setCapability(MobileCapabilityType.DEVICE_NAME, "iPhone 6");
desiredCapabilities.setCapability(MobileCapabilityType.PLATFORM_VERSION, "9.0");
desiredCapabilities.setCapability("udid", "E1791000-5BC8-4741-A1AC-416FDEEB3048");
desiredCapabilities.setCapability(MobileCapabilityType.PLATFORM, "MAC");
desiredCapabilities.setCapability(MobileCapabilityType.BROWSER_NAME, "Safari");
desiredCapabilities.setCapability(MobileCapabilityType.APP, f.getAbsolutePath());
driver=new IOSDriver(new URL("http://127.0.0.1:4723/wd/hub"), desiredCapabilities);
driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);
}
Note: Actually app is getting installed but not lunching the app and further work.Also by code simulator is appearing in screen, but after sometimes automatically closing it.
Please suggest.
Can anyone tell me the steps to run Appium on real iPhone device
I have downloaded Appium 1.4
DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability("platformVersion", "8.1.2");
capabilities.setCapability("platformName", "iOS");
capabilities.setCapability("device", "iPhone");
capabilities.setCapability("deviceName", "Maitri acharya");
//capabilities.setCapability("browserName", "safari");
String path = System.getProperty("user.dir")+"/UICatalog.app";
System.out.println(path);
File app = new File(path);
capabilities.setCapability("app", app.getAbsolutePath());
driver = new IOSDriver(new URL("http://127.0.0.1:4723/wd/hub"), capabilities);
I have set up bundleID and UDID defined in Appium setting
I came across few links about cloning Safari launcher and as ios-webkit-debug-proxy-launcher.js but I am not still clear on steps...
Thanks in advance
I get following error
: setupDesireCapabilitiesMobile
org.openqa.selenium.SessionNotCreatedException: A new session could not be created. (Original error: ENOENT, stat '/Applications/Appium.app/Contents/Resources/node_modules/appium/build/SafariLauncher/SafariLauncher.zip') (WARNING: The server did not provide any stacktrace information)
Comman
I know it was a month ago you posted but hopefully I can help someone else. I got the same error today. It turned out there was no SafariLauncher.zip on that path.
I solved it by downloading SafariLauncher from github: https://github.com/budhash/SafariLauncher
Then running the script in build.sh from the terminal, which creates a SafariLauncher.zip file. An then adding this zip file in the correct place.
I found this answer here: https://discuss.appium.io/t/error-installing-safari-launcher-on-real-device-appium-v1-3-7/3793
Do you test on real device? Did you unlock Web Inspector in:
your iPhone -> Settings -> Safari -> Advanced -> Web Inspector: on ?
I was able to get over this error executing the following in the Appium folder:
./reset.sh --ios --real-safari
This was explained on this bug report: https://github.com/appium/appium-dot-app/issues/513