Hi Guys,
I have tried all of the above steps to the last dot multiple times now, still getting the same error, can someone please help me out.
Issue: Appium is installing the app along with WebDriverAgent icon, then the webdriveragent flashes and app never launches and nothing else happens.
My desired caps are as follows:
WebDriver driver;
DesiredCapabilities caps = new DesiredCapabilities();
caps.setCapability(MobileCapabilityType.AUTOMATION_NAME, "XCUITest");
caps.setCapability(MobileCapabilityType.PLATFORM_NAME, "iOS");
caps.setCapability(MobileCapabilityType.PLATFORM_VERSION, "10.2");
caps.setCapability(MobileCapabilityType.DEVICE_NAME, "iPad Air");
caps.setCapability("udid", "d69cfcd0ea7e167b9a0b58b2daba958030443ac9");
caps.setCapability("app", "/Path/To/My/app.ipa");
caps.setCapability(MobileCapabilityType.LAUNCH_TIMEOUT, "20000");
caps.setCapability("fullReset", true);
caps.setCapability("noReset", true);
caps.setCapability("xcodeConfigFile", "/Path/To/myConfig.xcconfigfile");
caps.setCapability("realDeviceLogger", "/usr/local/lib/node_modules/deviceconsole/deviceconsole");
driver = new RemoteWebDriver(new URL("http://localhost:4723/wd/hub"),caps);
driver.quit();
Appium Server log is as follows:
Last login: Mon Dec 19 12:03:57 on ttys000
Harshendus-MacBook-Pro:~ Harshendu$ appium
[Appium] Welcome to Appium v1.6.3
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> POST /wd/hub/session {âcapabilitiesâ:{âdesiredCapabilitiesâ:{âappâ:"/Users/Harshendu/Downloads/EGPacPlus0.1.72-dev.ipa",ârealDeviceLoggerâ:"/usr/local/lib/node_modules/deviceconsole/deviceconsole",âplatformVersionâ:â10.0.2â,âbundleIdâ:âcom.egate-solutions.EGPacPlusâ,âautomationNameâ:âXCUITestâ,âxcodeConfigFileâ:"/Users/Harshendu/Desktop/myConfig.xcconfigfile",âudidâ:âd69cfcd0ea7e167b9a0b58b2daba958030443ac9â,âplatformNameâ:âiOSâ,âdeviceâ:âiPadâ,âdeviceNameâ:âiPad Airâ},ârequiredCapabilitiesâ:{}},âdesiredCapabilitiesâ:{âappâ:"/Users/Harshendu/Downloads/EGPacPlus0.1.72-dev.ipa",ârealDeviceLoggerâ:"/usr/local/lib/node_modules/deviceconsole/deviceconsole",âplatformVersionâ:â10.0.2â,âbundleIdâ:âcom.egate-solutions.EGPacPlusâ,âautomationNameâ:âXCUITestâ,âxcodeConfigFileâ:"/Users/Harshendu/Desktop/myConfig.xcconfigfile",âudidâ:âd69cfcd0ea7e167b9a0b58b2daba958030443ac9â,âplatformNameâ:âiOSâ,âdeviceâ:âiPadâ,âdeviceNameâ:âiPad Airâ},ârequiredCapabilitiesâ:{}}
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{âappâ:"/Users/Harshendu/Downloads/EGPacPlus0.1.72-dev.ipa",ârealDeviceLoggerâ:"/usr/local/lib/node_modules/deviceconsole/deviceconsole",âplatformVersionâ:â10.0.2â,âbundleIdâ:âcom.egate-solutions.EGPacPlusâ,âautomationNameâ:âXCUITestâ,âxcodeConfigFileâ:"/Users/Harshendu/Desktop/myConfig.xcconfigfile",âudidâ:âd69cfcd0ea7e167b9a0b58b2daba958030443ac9â,âplatformNameâ:âiOSâ,âdeviceâ:âiPadâ,âdeviceNameâ:âiPad Airâ},{},{âdesiredCapabilitiesâ:{âappâ:"/Users/Harshendu/Downloads/EGPacPlus0.1.72-dev.ipa",ârealDeviceLoggerâ:"/usr/local/lib/node_modules/deviceconsole/deviceconsole",âplatformVersionâ:â10.0.2â,âbundleIdâ:âcom.egate-solutions.EGPacPlusâ,âautomationNameâ:âXCUITestâ,âxcodeConfigFileâ:"/Users/Harshendu/Desktop/myConfig.xcconfigfile",âudidâ:âd69cfcd0ea7e167b9a0b58b2daba958030443ac9â,âplatformNameâ:âiOSâ,âdeviceâ:âiPadâ,âdeviceNameâ:âiPad Airâ},ârequiredCapabilitiesâ:{}},null,null]
[Appium] Creating new XCUITestDriver session
[Appium] Capabilities:
[Appium] app: â/Users/Harshendu/Downloads/EGPacPlus0.1.72-dev.ipaâ
[Appium] realDeviceLogger: â/usr/local/lib/node_modules/deviceconsole/deviceconsoleâ
[Appium] platformVersion: â10.0.2â
[Appium] bundleId: âcom.egate-solutions.EGPacPlusâ
[Appium] automationName: âXCUITestâ
[Appium] xcodeConfigFile: â/Users/Harshendu/Desktop/myConfig.xcconfigfileâ
[Appium] udid: âd69cfcd0ea7e167b9a0b58b2daba958030443ac9â
[Appium] platformName: âiOSâ
[Appium] device: âiPadâ
[Appium] deviceName: âiPad Airâ
[debug] [XCUITest] XCUITestDriver version: 2.4.2
[BaseDriver] The following capabilities were provided, but are not recognized by appium: device.
[BaseDriver] Session created with session id: a70abc49-6f28-4709-84ef-6824162874f5
[debug] [XCUITest] Xcode version set to â8.2â
[debug] [XCUITest] iOS SDK Version set to â10.2â
[debug] [XCUITest] Available devices: d69cfcd0ea7e167b9a0b58b2daba958030443ac9
[debug] [XCUITest] Creating iDevice object with udid d69cfcd0ea7e167b9a0b58b2daba958030443ac9
[XCUITest] Determining device to run tests on: udid: âd69cfcd0ea7e167b9a0b58b2daba958030443ac9â, real device: true
[BaseDriver] Using local app â/Users/Harshendu/Downloads/EGPacPlus0.1.72-dev.ipaâ
[debug] [BaseDriver] Copying local zip to tmp dir
[debug] [BaseDriver] Unzipping /var/folders/lb/v8wy_7_519g99zqg57krkcy40000gn/T/20161119-2564-1lp6l50.qxj6skyb9/appium-app.zip
[debug] [BaseDriver] Testing zip archive: /var/folders/lb/v8wy_7_519g99zqg57krkcy40000gn/T/20161119-2564-1lp6l50.qxj6skyb9/appium-app.zip
[BaseDriver] Unzipped local app to â/var/folders/lb/v8wy_7_519g99zqg57krkcy40000gn/T/20161119-2564-1lp6l50.qxj6skyb9/Payload/EGPacPlus.appâ
[debug] [XCUITest] Checking whether app â/var/folders/lb/v8wy_7_519g99zqg57krkcy40000gn/T/20161119-2564-1lp6l50.qxj6skyb9/Payload/EGPacPlus.appâ is actually present
[debug] [XCUITest] App is present
[debug] [iOSLog] Attempting iOS device log capture via libimobiledevice idevicesyslog
[debug] [iOSLog] Found idevicesyslog: â/usr/local/bin/idevicesyslogâ
[XCUITest] Setting up real device
[debug] [XCUITest] Error checking install status: Command âios-deploy --exists --id d69cfcd0ea7e167b9a0b58b2daba958030443ac9 --bundle_id com.egate-solutions.EGPacPlusâ exited with code 255
[debug] [XCUITest] App is not installed. Will try to install.
[debug] [XCUITest] App installed successfully.
[XCUITest] Using WDA path: â/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgentâ
[XCUITest] Using WDA agent: â/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeprojâ
[XCUITest] Launching WebDriverAgent on the device
[debug] [XCUITest] Carthage found: /usr/local/bin/carthage
[debug] [XCUITest] Killing hanging processes
[debug] [XCUITest] Using real device logger â/usr/local/lib/node_modules/deviceconsole/deviceconsoleâ
[debug] [XCUITest] Using Xcode configuration file: â/Users/Harshendu/Desktop/myConfig.xcconfigfileâ
[debug] [XCUITest] Beginning test with command âxcodebuild build test -project /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination id=d69cfcd0ea7e167b9a0b58b2daba958030443ac9 -configuration Debug -xcconfig /Users/Harshendu/Desktop/myConfig.xcconfigfileâ in directory â/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgentâ
[XCUITest] Waiting for WebDriverAgent to start on device
[debug] [XCUITest] Log file for xcodebuild test: /Users/Harshendu/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs/Test/A55DCC79-FAA1-4EDD-B300-52E4BD1C147D/Session-WebDriverAgentRunner-2016-12-19_120522-aiRV5j.log
[debug] [WebDriverAgent] Device: Dec 19 12:05:27 HARSHENDU-BHARDWAJs-iPad XCTRunner[310] : Running testsâŚ
[debug] [WebDriverAgent] Device: Dec 19 12:05:28 HARSHENDU-BHARDWAJs-iPad XCTRunner[310] : Continuing to run tests in the background with task ID 1
[XCUITest] Detected that WebDriverAgent is running at url âhttp://10.25.38.159:8100â
[XCUITest] WebDriverAgent started at url âhttp://10.25.38.159:8100â
[debug] [XCUITest] Starting iproxy to forward traffic from local port 8100 to device port 8100 over USB
[XCUITest] Error starting iproxy: âspawn iproxy ENOENTâ
[XCUITest] Unable to start iproxy. Is it installed?
[XCUITest] Shutting down sub-processes
[XCUITest] Shutting down xcodebuild process (pid 2602)
[XCUITest] xcodebuild exited with code ânullâ and signal âSIGTERMâ
[XCUITest] Shutting down Logger process (pid 2603)
[XCUITest] System log exited with code ânullâ
[XCUITest] Shutting down iproxy process (pid undefined)
[debug] [XCUITest] iproxy process did not end in a timely fashion: âProcess didnât end after 10000msâ. Sending âSIGKILLââŚ
[MJSONWP] Encountered internal error running command: Error: Process didnât end after 10000ms
at Timeout._onTimeout (âŚ/âŚ/lib/teen_process.js:240:16)
at ontimeout (timers.js:365:14)
at tryOnTimeout (timers.js:237:5)
at Timer.listOnTimeout (timers.js:207:5)
[HTTP] <-- POST /wd/hub/session 500 31357 ms - 169
[HTTP] --> POST /wd/hub/session {âdesiredCapabilitiesâ:{âappâ:"/Users/Harshendu/Downloads/EGPacPlus0.1.72-dev.ipa",ârealDeviceLoggerâ:"/usr/local/lib/node_modules/deviceconsole/deviceconsole",âplatformVersionâ:â10.0.2â,âbundleIdâ:âcom.egate-solutions.EGPacPlusâ,âautomationNameâ:âXCUITestâ,âxcodeConfigFileâ:"/Users/Harshendu/Desktop/myConfig.xcconfigfile",âudidâ:âd69cfcd0ea7e167b9a0b58b2daba958030443ac9â,âplatformNameâ:âiOSâ,âdeviceâ:âiPadâ,âdeviceNameâ:âiPad Airâ},ârequiredCapabilitiesâ:{}}
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{âappâ:"/Users/Harshendu/Downloads/EGPacPlus0.1.72-dev.ipa",ârealDeviceLoggerâ:"/usr/local/lib/node_modules/deviceconsole/deviceconsole",âplatformVersionâ:â10.0.2â,âbundleIdâ:âcom.egate-solutions.EGPacPlusâ,âautomationNameâ:âXCUITestâ,âxcodeConfigFileâ:"/Users/Harshendu/Desktop/myConfig.xcconfigfile",âudidâ:âd69cfcd0ea7e167b9a0b58b2daba958030443ac9â,âplatformNameâ:âiOSâ,âdeviceâ:âiPadâ,âdeviceNameâ:âiPad Airâ},{},null,null,null,null,null]
[Appium] Creating new XCUITestDriver session
[Appium] Capabilities:
[Appium] app: â/Users/Harshendu/Downloads/EGPacPlus0.1.72-dev.ipaâ
[Appium] realDeviceLogger: â/usr/local/lib/node_modules/deviceconsole/deviceconsoleâ
[Appium] platformVersion: â10.0.2â
[Appium] bundleId: âcom.egate-solutions.EGPacPlusâ
[Appium] automationName: âXCUITestâ
[Appium] xcodeConfigFile: â/Users/Harshendu/Desktop/myConfig.xcconfigfileâ
[Appium] udid: âd69cfcd0ea7e167b9a0b58b2daba958030443ac9â
[Appium] platformName: âiOSâ
[Appium] device: âiPadâ
[Appium] deviceName: âiPad Airâ
[debug] [XCUITest] XCUITestDriver version: 2.4.2
[BaseDriver] The following capabilities were provided, but are not recognized by appium: device.
[BaseDriver] Session created with session id: b38e006d-9312-4cf8-87fe-0edcc3aad5e7
[debug] [XCUITest] Xcode version set to â8.2â
[debug] [XCUITest] iOS SDK Version set to â10.2â
[debug] [XCUITest] Available devices: d69cfcd0ea7e167b9a0b58b2daba958030443ac9
[debug] [XCUITest] Creating iDevice object with udid d69cfcd0ea7e167b9a0b58b2daba958030443ac9
[XCUITest] Determining device to run tests on: udid: âd69cfcd0ea7e167b9a0b58b2daba958030443ac9â, real device: true
[BaseDriver] Using local app â/Users/Harshendu/Downloads/EGPacPlus0.1.72-dev.ipaâ
[debug] [BaseDriver] Copying local zip to tmp dir
[debug] [BaseDriver] Unzipping /var/folders/lb/v8wy_7_519g99zqg57krkcy40000gn/T/20161119-2564-jh8pd6.6shu6p3nmi/appium-app.zip
[debug] [BaseDriver] Testing zip archive: /var/folders/lb/v8wy_7_519g99zqg57krkcy40000gn/T/20161119-2564-jh8pd6.6shu6p3nmi/appium-app.zip
[BaseDriver] Unzipped local app to â/var/folders/lb/v8wy_7_519g99zqg57krkcy40000gn/T/20161119-2564-jh8pd6.6shu6p3nmi/Payload/EGPacPlus.appâ
[debug] [XCUITest] Checking whether app â/var/folders/lb/v8wy_7_519g99zqg57krkcy40000gn/T/20161119-2564-jh8pd6.6shu6p3nmi/Payload/EGPacPlus.appâ is actually present
[debug] [XCUITest] App is present
[debug] [iOSLog] Attempting iOS device log capture via libimobiledevice idevicesyslog
[debug] [iOSLog] Found idevicesyslog: â/usr/local/bin/idevicesyslogâ
[XCUITest] Setting up real device
[debug] [XCUITest] App is already installed.
[debug] [XCUITest] Full reset not requested. No need to install.
[XCUITest] Using WDA path: â/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgentâ
[XCUITest] Using WDA agent: â/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeprojâ
[XCUITest] Launching WebDriverAgent on the device
[debug] [XCUITest] Carthage found: /usr/local/bin/carthage
[debug] [XCUITest] Killing hanging processes
[debug] [XCUITest] Using real device logger â/usr/local/lib/node_modules/deviceconsole/deviceconsoleâ
[debug] [XCUITest] Using Xcode configuration file: â/Users/Harshendu/Desktop/myConfig.xcconfigfileâ
[debug] [XCUITest] Beginning test with command âxcodebuild build test -project /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination id=d69cfcd0ea7e167b9a0b58b2daba958030443ac9 -configuration Debug -xcconfig /Users/Harshendu/Desktop/myConfig.xcconfigfileâ in directory â/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgentâ
[XCUITest] Waiting for WebDriverAgent to start on device
[debug] [XCUITest] Log file for xcodebuild test: /Users/Harshendu/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs/Test/8CC1E296-B709-4DF4-AD69-2BFEDD4F5FCA/Session-WebDriverAgentRunner-2016-12-19_120551-uQBux2.log
[debug] [WebDriverAgent] Device: Dec 19 12:05:56 HARSHENDU-BHARDWAJs-iPad XCTRunner[316] : Running testsâŚ
[debug] [WebDriverAgent] Device: Dec 19 12:05:57 HARSHENDU-BHARDWAJs-iPad XCTRunner[316] : Continuing to run tests in the background with task ID 1
[XCUITest] Detected that WebDriverAgent is running at url âhttp://10.25.38.159:8100â
[XCUITest] WebDriverAgent started at url âhttp://10.25.38.159:8100â
[debug] [XCUITest] Starting iproxy to forward traffic from local port 8100 to device port 8100 over USB
[XCUITest] Error starting iproxy: âspawn iproxy ENOENTâ
[XCUITest] Unable to start iproxy. Is it installed?
[XCUITest] Shutting down sub-processes
[XCUITest] Shutting down xcodebuild process (pid 2655)
[XCUITest] xcodebuild exited with code ânullâ and signal âSIGTERMâ
[XCUITest] Shutting down Logger process (pid 2656)
[XCUITest] System log exited with code ânullâ
[XCUITest] Shutting down iproxy process (pid undefined)
[debug] [XCUITest] iproxy process did not end in a timely fashion: âProcess didnât end after 10000msâ. Sending âSIGKILLââŚ
[MJSONWP] Encountered internal error running command: Error: Process didnât end after 10000ms
at Timeout._onTimeout (âŚ/âŚ/lib/teen_process.js:240:16)
at ontimeout (timers.js:365:14)
at tryOnTimeout (timers.js:237:5)
at Timer.listOnTimeout (timers.js:207:5)
[HTTP] <-- POST /wd/hub/session 500 28725 ms - 169
[HTTP] --> POST /wd/hub/session {âcapabilitiesâ:{âdesiredCapabilitiesâ:{âappâ:"/Users/Harshendu/Downloads/EGPacPlus0.1.72-dev.ipa",ârealDeviceLoggerâ:"/usr/local/lib/node_modules/deviceconsole/deviceconsole",âplatformVersionâ:â10.0.2â,âbundleIdâ:âcom.egate-solutions.EGPacPlusâ,âautomationNameâ:âXCUITestâ,âxcodeConfigFileâ:"/Users/Harshendu/Desktop/myConfig.xcconfigfile",âudidâ:âd69cfcd0ea7e167b9a0b58b2daba958030443ac9â,âplatformNameâ:âiOSâ,âdeviceâ:âiPadâ,âdeviceNameâ:âiPad Airâ},ârequiredCapabilitiesâ:{}}}
[debug] [MJSONWP] Bad parameters: BadParametersError: Parameters were incorrect. We wanted {ârequiredâ:[âdesiredCapabilitiesâ],âoptionalâ:[ârequiredCapabilitiesâ,âcapabilitiesâ,âsessionIdâ,âidâ,âsessionIdâ,âidâ,âsessionIdâ,âidâ]} and you sent [âcapabilitiesâ]
[HTTP] <-- POST /wd/hub/session 400 3 ms - 205
^C[Appium] Received SIGINT - shutting down
Harshendus-MacBook-Pro:~ Harshendu$
Please Help!!!