How to use appium from terminal for testing and GUI for uiautomator simultaneously?

iOS - i am updating
Android- I cannot see the UI automator starting… only app starts and it loads and loads.

Terminal appium version: 1.7.0 https://github.com/appium/appium/releases/tag/v1.7.0

Gui appium version : 1.2.1 https://github.com/appium/appium-desktop/releases/tag/v1.2.1

After i updated the xcode to 9.0.

A new session could not be created. Details: Appium’s IosDriver does not support xcode version 9.0. Apple has deprecated UIAutomation. Use the “XCUITest” automationName capability instead.

add this to your Desired Capabilities:
automationName: ‘XCUITest’

I wrote that … i am using that desired capabilities but still getting the error.

can please share your desired capabilities here

{
“platformName”: “iOS”,
“deviceName”: “iPhone 6”,
“noReset”: false,
“showXcodeLog”: true,
"automationName ": “XCUITest”,
“xcodeSigningId”: “iPhone Developer”,
“app”: “/XX/XX/XX/XX”,
“platformVersion”: “10.3.2”
}

{
‘platformName’: ‘iOS’,
‘deviceName’: ‘iPhone 6’,
‘automationName’: ‘XCUITest’,
‘platformVersion’: ‘10.3’,
‘noReset’: ‘true’,
}

Start the Appium server from terminal by typing ‘appium’ command. Ensure that Appium 1.7.0 is starting on terminal on port 4723

If error happens agin, please share the full error logs for debugging.

I can run the test easily from terminal … it doesnot have any problem … i have problem to inspect the element for further test cases … previously i used only GUI … i uninstalled it and then used terminal. I installed GUI again and trying to use it.

I also tried with your desired capabilities … but error is :

Sdk ‘10.3.2’ was not in list of simctl sdks

got it +1

Appium Desktop doesn’t support Xcode 9 yet. Try the following workaround:

1. Uninstall current version of XCode
2. Open https://developer.apple.com/download/more/?name=Xcode
3. Download xpi for 8.3.3 (or any other version you like)
4. Install xpi
5. Move XCode to Applications
6. Restart your OS machine
7. Run Appium Server. Run XCode. Enjoy!
8. Don't upgrade XCode to newer version
9. Wait for Appium to release support for XCode 9.0 and then update XCode to 9.0.

Pasting this from this link:

For inspecting elements alone try the above steps, when running test cases use the terminal.

Work around for your problem, pretty simple than downloading Xcode 8.3.3:

https://www.youtube.com/watch?v=mGpfjbPsO20

This video solve the below error:

"An unknown server-side error occurred while processing the command. Original error: Xcode version 9.0 is not yet supported"

This is not the error i am getting… Sdk ‘10.3.2’ was not in list of simctl sdks … this is the error

Change the platform version based on the output of

xcrun simctl list

https://github.com/appium/appium/issues/7237

If you just looking to ‘Inspect elements’ of your application then follow the steps in the video with Xcode 9

1 Like

I have done same as you : it gives the following error

Could not start a new session

Be sure the Appium server is running with an application opened by using the “App Path” parameter in Appium.app (along with package and activity for Android) or by connecting with selenium client and supplying this in the desired capabilities object.

To inspect elements in Android use uiautomatorviewer which comes with Android SDK, it easy to use. Use Appium app for iOS app alone

yes i am trying to use appium.app for ios only… and it gives the above error

https://discuss.appium.io/t/could-not-launch-appium-inspector-cannot-launch-the-appium-inspector-on-1-3-5-beta/2967/2