OSX Sierra with IntelliJ 2017 - Nothing on Appium Desktop client or Command line

All help appreciated here cuz i am really new to appium

Trying to get started but i cant even bring appium to show anything on me . Seems like a configuration issue so i am asking help here

Mac OS X Sierra - 10.12.13
Intelli J Idea CE - 2017.1.1
Appium Desktop client - 1.0.0

Wrote a small program to see if i can get to bring up the simulator but i am not seeing anything happening . No logs nothing even when clearly the server is running .

For the longest i struggled with even able to get my java program to compile but then used this to get through the Java FX problem - http://stackoverflow.com/questions/43003012/objc3648-class-javalaunchhelper-is-implemented-in-both

But not when i am running this code i see nothing happening was expecting at least the simulator to come up

Package testPackage;

import io.appium.java_client.AppiumDriver;
import io.appium.java_client.ios.IOSDriver;
import org.openqa.selenium.remote.DesiredCapabilities;

import java.net.URL;

public class IOSTest {

public static void main(String args[]){

    DesiredCapabilities cap = new DesiredCapabilities();
    cap.setCapability("platformName", "iOS");
    cap.setCapability("deviceName", "iPhone 6");
    cap.setCapability("platformVersion", "9.3");
    cap.setCapability("automationName", "XCUITest");
    cap.setCapability("app", "/Users/xxx/Desktop/abc.app");

    try {

        IOSDriver myDriver = new IOSDriver(new URL("http://0.0.0.0:4273"), cap);

        ((AppiumDriver) myDriver).context("NATIVE_APP");

    } catch(Exception e){
        
    }

}

}

What could i be doing wrong ?? i was expecting it will bring the simulator up but i see nothing happening No logs nothing

1 Like

I am also facing same issue anybody here to help us.

I’m by no means an expert. But what I’ve noticed is my automationName is “IOS_XCUI_TEST”.
Also you certain you have the correct ios simulator installed through xcode? aka platform version 9.3 is installed in xcode.

This is not working for me.

@everyone Please help my script is not getting connected with appium server

Anyone working with Sierra and Appium server . Cant tell what might be going on . At loss if its an OSX or an IDE issue . Or if anyone has ideas to debug

@rover12, try to add:

cap.setCapability(MobileCapabilityType.UDID, "xxxxx") ;

You can get udid by:

idevice_id -l

Hi,

Please make sure that you’re running the latest XCODE(8.3) and latest Appium Desktop Client (Version 1.0.0 (1.0.0)). Platform version “9.3” will not work for automationName “XCUITest”. You have to use version 10+. Apple depreciated UIAutomation that supports version less 10.

Try running the below with above configuration.

DesiredCapabilities cap = new DesiredCapabilities();
File app = new File(“app path”);
cap.setCapability(MobileCapabilityType.PLATFORM_VERSION, “10.3”);
cap.setCapability(MobileCapabilityType.DEVICE_NAME, “iPhone 6”);
cap.setCapability(MobileCapabilityType.BROWSER_NAME, “”);
cap.setCapability(MobileCapabilityType.APP, app.getAbsolutePath());

	IOSDriver driver = new IOSDriver(new URL("http://0.0.0.0:4723/wd/hub"),cap);
	driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);

Regards,
Manoj

Nah - I still cant get the java program to bring up the simulator . Though the desktop client showed me these logs telling me that something is up
[Appium]Welcome to Appium v1.6.4
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> POST /wd/hub/session {“desiredCapabilities”:{“app”:"/Users/xyz/Desktop/abc.app",“automationName”:“XCUITest”,“deviceName”:“iPhone 6”,“platformName”:“iOS”,“platformVersion”:“10.3”,“newCommandTimeout”:0,“connectHardwareKeyboard”:true}}
[MJSONWP] Calling AppiumDriver.createSession() with args: [{“app”:"/Users/xyz/Desktop/abc.app",“automationName”:“XCUITest”,“deviceName”:“iPhone 6”,“platformName”:“iOS”,“platformVersion”:“10.3”,“newCommandTimeout”:0,“connectHardwareKeyboard”:true},null,null,null,null]
[BaseDriver] Event ‘newSessionRequested’ logged at 1493658665799 (10:11:05 GMT-0700 (PDT))
[Appium] Creating new XCUITestDriver (v2.27.2) session
[Appium] Capabilities:
[Appium] app: ‘/Users/xyz/Desktop/abc.app’
[Appium] automationName: ‘XCUITest’
[Appium] deviceName: ‘iPhone 6’
[Appium] platformName: ‘iOS’
[Appium] platformVersion: ‘10.3’
[Appium] newCommandTimeout: 0
[Appium] connectHardwareKeyboard: true
[XCUITest] XCUITestDriver version: 2.27.2
[BaseDriver] Session created with session id: bec5e98d-5983-4d93-af3f-e5e02294657d
[XCUITest] Xcode version set to ‘8.3.2’ (tools v8.3.0.0.1.1490382677)
[XCUITest] iOS SDK Version set to ‘10.3’
[BaseDriver] Event ‘xcodeDetailsRetrieved’ logged at 1493658666052 (10:11:06 GMT-0700 (PDT))
[iOSSim] Constructing iOS simulator for Xcode version 8.3.2 with udid ‘FB89C4FB-E6A3-48C1-9DA7-6D1774CD0BB9’
[XCUITest] Determining device to run tests on: udid: ‘FB89C4FB-E6A3-48C1-9DA7-6D1774CD0BB9’, real device: false
[BaseDriver] Using local app ‘/Users/xyz/Desktop/abc.app’
[BaseDriver] Event ‘appConfigured’ logged at 1493658666283 (10:11:06 GMT-0700 (PDT))
[XCUITest] Checking whether app ‘/Users/xyz/Desktop/abc.app’ is actually present on file system
[XCUITest] App is present
[iOS] Getting bundle ID from app ‘/Users/xyz/Desktop/abc.app’: ‘com.xyz.abcIntro’
[XCUITest] Setting ‘connectHardwareKeyboard’ Simulator option to ‘on’
[BaseDriver] Event ‘resetStarted’ logged at 1493658666285 (10:11:06 GMT-0700 (PDT))
[XCUITest] Not scrubbing third party app in anticipation of uninstall
[BaseDriver] Event ‘resetComplete’ logged at 1493658666388 (10:11:06 GMT-0700 (PDT))
[iOSLog] Starting iOS 10.3 simulator log capture
[iOSLog] System log path: /Users/xyz/Library/Logs/CoreSimulator/FB89C4FB-E6A3-48C1-9DA7-6D1774CD0BB9/system.log
[BaseDriver] Event ‘logCaptureStarted’ logged at 1493658666507 (10:11:06 GMT-0700 (PDT))
[XCUITest] Setting up simulator
[iOS] No reason to set locale
[iOS] No iOS / app preferences to set
[XCUITest] Simulator with udid ‘FB89C4FB-E6A3-48C1-9DA7-6D1774CD0BB9’ not booted. Booting up now
[iOSSim] Killing all iOS Simulators
[iOSSim] Simulator is not running. Continuing…
[iOSSim] Starting simulator with command: open -Fn /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app --args -CurrentDeviceUDID FB89C4FB-E6A3-48C1-9DA7-6D1774CD0BB9
[XCUITest] Reset requested. Removing app with id ‘com.xyz.abcIntro’ from the device
[iOSSim] Simulator booted in 16308ms
[BaseDriver] Event ‘simStarted’ logged at 1493658683037 (10:11:23 GMT-0700 (PDT))
[XCUITest] Installing /Users/xyz/Desktop/abc.app on Simulator with UUID ‘FB89C4FB-E6A3-48C1-9DA7-6D1774CD0BB9’…
[XCUITest] The app has been installed successfully.
[BaseDriver] Event ‘appInstalled’ logged at 1493658689573 (10:11:29 GMT-0700 (PDT))
[BaseDriver] Event ‘wdaStartAttempted’ logged at 1493658689577 (10:11:29 GMT-0700 (PDT))
[XCUITest] Using WDA path: ‘/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent’
[XCUITest] Using WDA agent: ‘/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj’
[XCUITest] Launching WebDriverAgent on the device
[XCUITest] Carthage found: ‘/usr/local/bin/carthage’
[XCUITest] Killing hanging processes
[XCUITest] Beginning test with command ‘xcodebuild build-for-testing test-without-building -project /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination id=FB89C4FB-E6A3-48C1-9DA7-6D1774CD0BB9 -configuration Debug IPHONEOS_DEPLOYMENT_TARGET=10.3’ in directory ‘/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent’
[XCUITest] Output from xcodebuild will not be logged
[XCUITest] Waiting up to 60000ms for WebDriverAgent to start
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[XCUITest] Log file for xcodebuild test: /Users/xyz/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs/Logs/Test/9733728D-7E70-435C-90F0-DBF63AFAE7AC/Session-WebDriverAgentRunner-2017-05-01_101131-jGg3uJ.log
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Got response with status 200: “{\n “value” : {\n “state” : “success”,\n “os” : {\n “name” : “iOS”,\n “version” : “10.3”\n },\n “ios” : {\n “simulatorVersion” : “10.3”,\n “ip” : “192.168.200.117”\n },\n “build” : {\n “time” : “May 1 2017 10:01:11”\n }\n },\n “sessionId” : “95779A67-84A6-428A-9423-F15E1708B17E”,\n “status” : 0\n}”
[XCUITest] WebDriverAgent running on ip ‘192.168.200.117’
[XCUITest] WebDriverAgent successfully started after 8398ms
[BaseDriver] Event ‘wdaSessionAttempted’ logged at 1493658698177 (10:11:38 GMT-0700 (PDT))
[XCUITest] Sending createSession command to WDA
[JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {“desiredCapabilities”:{“bundleId”:“com.xyz.abcIntro”,“arguments”:[],“environment”:{},“shouldWaitForQuiescence”:true,“shouldUseTestManagerForVisibilityDetection”:false,“maxTypingFrequency”:60,“shouldUseSingletonTestManager”:true}}
[JSONWP Proxy] Got response with status 200: {“value”:{“sessionId”:“1CCA61C0-3616-4C8A-8CF0-D6F4B5E612CC”,“capabilities”:{“device”:“iphone”,“browserName”:“abc”,“sdkVersion”:“10.3”,“CFBundleIdentifier”:“com.xyz.abcIntro”}},“sessionId”:“1CCA61C0-3616-4C8A-8CF0-D6F4B5E612CC”,“status”:0}
[BaseDriver] Event ‘wdaSessionStarted’ logged at 1493658700642 (10:11:40 GMT-0700 (PDT))
[XCUITest] Found WDA derived data folder: ‘/Users/xyz/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy’
[XCUITest] Found WDA derived data folder: ‘/Users/xyz/Library/Developer/Xcode/DerivedData/WebDriverAgent-ceakatlydgitcjebccsbdhchgrpn’
[XCUITest] Setting ‘555’ permissions to ‘/Users/xyz/Library/Developer/Xcode/DerivedData/WebDriverAgent-ceakatlydgitcjebccsbdhchgrpn/Logs/Test/Attachments’ folder
[XCUITest] Found WDA derived data folder: ‘/Users/xyz/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs’
[XCUITest] Setting ‘555’ permissions to ‘/Users/xyz/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs/Logs/Test/Attachments’ folder
[BaseDriver] Event ‘wdaPermsAdjusted’ logged at 1493658700646 (10:11:40 GMT-0700 (PDT))
[BaseDriver] Event ‘wdaStarted’ logged at 1493658700646 (10:11:40 GMT-0700 (PDT))
[XCUITest] Setting initial orientation to ‘PORTRAIT’
[JSONWP Proxy] Proxying [POST /orientation] to [POST http://localhost:8100/session/1CCA61C0-3616-4C8A-8CF0-D6F4B5E612CC/orientation] with body: {“orientation”:“PORTRAIT”}
[JSONWP Proxy] Got response with status 200: {“value”:{},“sessionId”:“1CCA61C0-3616-4C8A-8CF0-D6F4B5E612CC”,“status”:0}
[BaseDriver] Event ‘orientationSet’ logged at 1493658700815 (10:11:40 GMT-0700 (PDT))
[Appium] New XCUITestDriver session created successfully, session bec5e98d-5983-4d93-af3f-e5e02294657d added to master session list
[BaseDriver] Event ‘newSessionStarted’ logged at 1493658700816 (10:11:40 GMT-0700 (PDT))
[MJSONWP] Responding to client with driver.createSession() result: {“webStorageEnabled”:false,“locationContextEnabled”:false,“browserName”:"",“platform”:“MAC”,“javascriptEnabled”:true,“databaseEnabled”:false,“takesScreenshot”:true,“networkConnectionEnabled”:false,“app”:"/Users/xyz/Desktop/abc.app",“automationName”:“XCUITest”,“deviceName”:“iPhone 6”,“platformName”:“iOS”,“platformVersion”:“10.3”,“newCommandTimeout”:0,“connectHardwareKeyboard”:true,“udid”:“FB89C4FB-E6A3-48C1-9DA7-6D1774CD0BB9”}
[HTTP] <-- POST /wd/hub/session 200 35024 ms - 510
[HTTP] --> POST /wd/hub/session/bec5e98d-5983-4d93-af3f-e5e02294657d/context {“name”:“NATIVE_APP”}
[MJSONWP] Calling AppiumDriver.setContext() with args: [“NATIVE_APP”,“bec5e98d-5983-4d93-af3f-e5e02294657d”]
[XCUITest] Executing command ‘setContext’
[iOS] Attempting to set context to ‘NATIVE_APP’
[MJSONWP] Responding to client with driver.setContext() result: null
[HTTP] <-- POST /wd/hub/session/bec5e98d-5983-4d93-af3f-e5e02294657d/context 200 4 ms - 76
[HTTP] --> GET /wd/hub/session/bec5e98d-5983-4d93-af3f-e5e02294657d/source {}
[MJSONWP] Calling AppiumDriver.getPageSource() with args: [“bec5e98d-5983-4d93-af3f-e5e02294657d”]
[XCUITest] Executing command ‘getPageSource’
[JSONWP Proxy] Proxying [GET /source] to [GET http://localhost:8100/session/1CCA61C0-3616-4C8A-8CF0-D6F4B5E612CC/source] with no body
[JSONWP Proxy] Got response with status 200: "{\n “value” : "\n\n \n \n \n \n \n …
[MJSONWP] Responding to client with driver.getPageSource() result: "\n \n \n \n \n \n \n
[HTTP] <-- GET /wd/hub/session/bec5e98d-5983-4d93-af3f-e5e02294657d/source 200 48 ms - 4263
[HTTP] --> GET /wd/hub/session/bec5e98d-5983-4d93-af3f-e5e02294657d/screenshot {}
[MJSONWP] Calling AppiumDriver.getScreenshot() with args: [“bec5e98d-5983-4d93-af3f-e5e02294657d”]
[XCUITest] Executing command ‘getScreenshot’
[MJSONWP] Responding to client with driver.getScreenshot() result: "iVBORw0KGgoAAAANSUhEUgAAAu4AAAU2CAYAAADK1zMGAAAEDWlDQ1BJQ0MgUHJvZmlsZQAAOI2NVV1oHFUUPrtzZyMkzlNsNIV0qD8NJQ2TVjShtLp/3d02bpZJNtoi6GT27s6Yyc44M7v9oU9FUHwx6psUxL+3gCAo9Q/bPrQvlQol2tQgKD60+INQ6Ium65k7M5lpurHeZe58853vnnvuuWfvBei5qliWkRQBFpquLRcy4nOHj4g9K5CEh6AXBqFXUR0rXalMAjZPC3e1W99Dwntf2dXd/p+tt0YdFSBxH2Kz5qgLiI8B8KdVy3YBevqRHz/qWh72Yui3MUDEL3q44WPXw3M+fo1pZuQs4tOIBVVTaoiXEI/MxfhGDPsxsNZfoE1q66ro5aJim3XdoLFw72H+n23BaIXzbcOnz5mfPoTvYVz7KzUl5+FRxEuqkp9G/Ajia219thzg25abkRE/BpDc3pqvphHvRFys2weqvp+krbWKIX7nhDbzLOItiM8358pTwdirqpPFnMF2xLc1WvLyOwTAibpbmvHHcvttU57y5+XqNZrLe3lE/Pq8eUj2fXKfOe3pfOjzhJYtB/yll5SDFcSDiH+hRkH25+L+sdxKEAMZahrlSX8ukqMOWy/jXW2m6M9LDBc31B9LFuv6gVKg/0Szi3KAr1kGq1GMjU/aLbnq6/lRxc4XfJ98hTargX++DbMJBSiYMIe9Ck1YAxFkKEAG3xbYaKmDDgYyFK0UGYpfoWYXG+fAPPI6tJnNwb7ClP7IyF+D+bjOtCpkhz6CFrIa/I6sFtNl8auFXGMTP34sNwI/JhkgEtmDz14ySfaRcTIBInmKPE32kxyyE2Tv+thKbEVePDfW/byMM1Kmm0XdObS7oGD/MypMXFPXrCwOtoYjyyn7BV29/MZfsVzpLDdRtuIZnbpXzvlf+ev8MvYr/Gqk4H/kV/G3csdazLuyTMPsbFhzd1UabQbjFvDRmcWJxR3zcfHkVw9GfpbJmeev9F08WW8u…
[HTTP] <-- GET /wd/hub/session/bec5e98d-5983-4d93-af3f-e5e02294657d/screenshot 200 207 ms - 1375398