Could not create simulator with name and runtime id - appium

I use Xcode 10.1 and with Appium Desktop my capability is
{
"uuid": "B13D4F22-AA4E-4890-8C2B-3C5B7B6E3678",
"bundleId": "com.slacorp.eptt",
"platformName": "iOS",
"deviceName": "iPhone 8",
"automationName": "XCUITest"
}
but when I run Appium Desktop I get
An unknown server-side error occurred while processing the command. Original error: Could not create simulator with name 'appiumTest-iPhone 8', device type id 'iPhone 8' and runtime id 'undefined'. Reason: 'simctl error running 'create': Invalid runtime: undefined'

Udid capability is missing: "udid": auto

Related

Error: Simulator architecture is unsupported by the app. Make sure the correct deployment target has been selected for its compilation in Xcode

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

Problème de configuration Appium pour iOS

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.

Problem In Opening Appium Inspector with calculator seesion

"deviceName": "Moto C Plus",
"udid": "ZZ2222MGJM",
"platformName": "Android",
"platformVersion": "7.0",
"appPackage": "com.google.android.calculator",
"appActivity": "com.android.calculator2.Calculator"
when click on startSession button
error :
Error
An unknown server-side error occurred while processing the command. Original error: zipAlignApk failed. Original error: Command 'C:\Users\ANIL\Desktop\android-sdk\platform-tools\zipalign.exe -f 4 C:\Users\ANIL\AppData\Local\Temp\20191017-3868-paf3kz.h4yu\appium-uiautomator2-server-debug-androidTest.apk C:\Users\ANIL\AppData\Local\Temp\20191017-3868-1e9g3nn.xgdch\appium.tmp' exited with code 3221225781. Stdout: ''; Stderr: ''
I think you need to add the automationName parameter to your desired capabilities here. Something like:
automationName: UiAutomator1
Or
automationName: UiAutomator2
You can read about the automationName parameter under the Appium docs: http://appium.io/docs/en/writing-running-appium/caps/
It basically tells Appium which device-native automation framework to use.

Appium - iOS - Error writing xctestrun file: Error Domain=NSCocoaErrorDomain Code=4

I'm trying to connect Appium 1.12.1 to a physical iOS device with Automatic Server. These are the capabilities I am trying:
{
"browserName": "Safari",
"platformName": "iOS",
"platformVersion": "12.1",
"deviceName": "iPhone 6",
"automationName": "XCUITest",
"startIWDP": true,
"udid": "auto"
}
I am getting a lengthy error that starts with:
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 xcodebuild error message: 2019-04-09 10:14:08.626 xcodebuild[22198:212737] Error writing xctestrun file: Error Domain=NSCocoaErrorDomain Code=4 "The folder “WebDriverAgentRunner_iphoneos12.2-arm64.xctestrun” doesn’t exist."
I had the same problem.
In "/Users/YOUR_NAME/Library/Developer/Xcode/DerivedData/" I have two folders:
WebDriverAgent-akxhdiizyykdxefsthlnfyomlaiz
WebDriverAgent-ciegwgvxzxdrqthilmrmczmqvrgu
And Appium tried take the folder from WebDriverAgent-akxhdiizyykdxefsthlnfyomlaiz but need WebDriverAgent-ciegwgvxzxdrqthilmrmczmqvrgu.
I copied from WebDriverAgent-ciegwgvxzxdrqthilmrmczmqvrgu to WebDriverAgent-akxhdiizyykdxefsthlnfyomlaiz and now all work good.

Error while connecting real iOS device with Appium server

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.

Resources