[Appium] Creating new XCUITestDriver session
[Appium] Capabilities:
[Appium] realDeviceLogger: '/usr/local/lib/node_modules/deviceconsole/deviceconsole'
[Appium] automationName: 'XCUITest'
[Appium] bundleId: 'com.google.ios.youtube'
[Appium] xcodeConfigFile: '/Users/workspace/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/Configurations/ProjectSettings.xcconfig'
[Appium] udid: '2xxxxxxxxxxxxx8'
[Appium] platformName: 'iOS'
[Appium] deviceName: 'iPhone di Media'
[Appium] platform: 'iOS'
[BaseDriver] The following capabilities were provided, but are not recognized by appium: realDeviceLogger, xcodeConfigFile, platform.
[BaseDriver] Session created with session id: 71f86cd3-1c69-4ff3-8604-9e357f102a0d
[debug] [XCUITest] Xcode version set to '8.1'
[debug] [XCUITest] iOS SDK Version set to '10.1'
[debug] [XCUITest] Available devices: 2xxxxxxxxxxxxxxxxxxxxxx8
[debug] [XCUITest] Creating iDevice object with udid 2xxxxxxxxxxxxxxxxxxxx8
[XCUITest] Determining device to run tests on: udid: '2xxxxxxxxxxxxxxx8', real device: true
[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] Stdout from app isInstalled check: [....] Waiting for iOS device to be connected
[....] Using iPhone 5s (Global/CDMA) 'iPhone di Media' (2xxxxxxxxxxxxxxxxxxx8).
true
[debug] [XCUITest] App is installed.
[debug] [XCUITest] fullReset not requested. No need to install.
[XCUITest] Using default agent: /Users/workspace/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj
[XCUITest] Using default bootstrap: /Users/workspace/appium/node_modules/appium-xcuitest-driver/WebDriverAgent
[XCUITest] Launching WebDriverAgent on the device
[debug] [XCUITest] Carthage found: /usr/local/bin/carthage
[debug] [XCUITest] Beginning test with command 'xcodebuild -project /Users/workspace/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination id=2xxxxxxxxxxxxxxxx8 build test' in directory '/Users/workspace/appium/node_modules/appium-xcuitest-driver/WebDriverAgent'
[XCUITest] Waiting for WebDriverAgent to start on device
[debug] [XCUITest] Log file for xcodebuild test: /Users/Library/Developer/Xcode/DerivedData/WebDriverAgent-dnlenklnzvsrljbhfotctvqbrfvn/Logs/Test/44ABEE20-ADFF-4BC8-8D1C-F950AF219C24/Session-WebDriverAgentRunner-2016-12-15_180026-MoNDoL.log
[Xcode] 2016-12-15 18:00:26.888 xcodebuild[10830:216636] Error Domain=IDETestOperationsObserverErrorDomain Code=3 "Test operation was canceled. If you believe this error represents a bug, please attach the log file at /Users/Library/Developer/Xcode/DerivedData/WebDriverAgent-dnlenklnzvsrljbhfotctvqbrfvn/Logs/Test/44ABEE20-ADFF-4BC8-8D1C-F950AF219C24/Session-WebDriverAgentRunner-2016-12-15_180026-MoNDoL.log" UserInfo={NSLocalizedDescription=Test operation was canceled. If you believe this error represents a bug, please attach the log file at /Users/Library/Developer/Xcode/DerivedData/WebDriverAgent-dnlenklnzvsrljbhfotctvqbrfvn/Logs/Test/44ABEE20-ADFF-4BC8-8D1C-F950AF219C24/Session-WebDriverAgentRunner-2016-12-15_180026-MoNDoL.log}
[Xcode]
Testing failed:
IntegrationApp requires a provisioning profile. Select a provisioning profile for the "Debug" build configuration in the project editor.
Code signing is required for product type 'Application' in SDK 'iOS 10.1'
** TEST FAILED **
The following build commands failed:
Check dependencies
(1 failure)
[XCUITest] xcodebuild exited with code '65' and signal 'null'
[debug] [XCUITest] xcodebuild failure warrants retry. Retrying...
[XCUITest] Shutting down WebDriverAgent
[XCUITest] System log exited with code 'null'
[XCUITest] Launching WebDriverAgent on the device
[debug] [XCUITest] Carthage found: /usr/local/bin/carthage
[debug] [XCUITest] Beginning test with command 'xcodebuild -project /Users/workspace/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination id=2xxxxxxxxxx8 build test' in directory '/Users/workspace/appium/node_modules/appium-xcuitest-driver/WebDriverAgent'
[XCUITest] Waiting for WebDriverAgent to start on device
[debug] [XCUITest] Log file for xcodebuild test: /Users/Library/Developer/Xcode/DerivedData/WebDriverAgent-dnlenklnzvsrljbhfotctvqbrfvn/Logs/Test/4A08EDC3-D965-4427-AE90-F67E4516B4B4/Session-WebDriverAgentRunner-2016-12-15_180028-WIrQ2P.log
[Xcode] 2016-12-15 18:00:28.480 xcodebuild[10845:216743] Error Domain=IDETestOperationsObserverErrorDomain Code=3 "Test operation was canceled. If you believe this error represents a bug, please attach the log file at /Users/Library/Developer/Xcode/DerivedData/WebDriverAgent-dnlenklnzvsrljbhfotctvqbrfvn/Logs/Test/4A08EDC3-D965-4427-AE90-F67E4516B4B4/Session-WebDriverAgentRunner-2016-12-15_180028-WIrQ2P.log" UserInfo={NSLocalizedDescription=Test operation was canceled. If you believe this error represents a bug, please attach the log file at /Users/Library/Developer/Xcode/DerivedData/WebDriverAgent-dnlenklnzvsrljbhfotctvqbrfvn/Logs/Test/4A08EDC3-D965-4427-AE90-F67E4516B4B4/Session-WebDriverAgentRunner-2016-12-15_180028-WIrQ2P.log}
[Xcode] 2016-12-15 18:00:28.482 xcodebuild[10845:216744] Connection peer refused channel request for "dtxproxy:XCTestManager_IDEInterface:XCTestManager_DaemonConnectionInterface"; channel canceled
Testing failed:
IntegrationApp requires a provisioning profile. Select a provisioning profile for the "Debug" build configuration in the project editor.
Code signing is required for product type 'Application' in SDK 'iOS 10.1'
** TEST FAILED **
The following build commands failed:
Check dependencies
(1 failure)
[XCUITest] xcodebuild exited with code '65' and signal 'null'
[XCUITest] Error: xcodebuild failed with code 65
at SubProcess. (lib/webdriveragent.js:244:25)
at emitTwo (events.js:106:13)
at SubProcess.emit (events.js:191:7)
at ChildProcess. (lib/teen_process.js:191:14)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at Process.ChildProcess.handle.onexit (internal/childprocess.js:204:12)
Error: xcodebuild failed with code 65
at SubProcess. (lib/webdriveragent.js:244:25)
at emitTwo (events.js:106:13)
at SubProcess.emit (events.js:191:7)
at ChildProcess. (lib/teen_process.js:191:14)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at Process.ChildProcess.handle.onexit (internal/childprocess.js:204:12)
[XCUITest] Shutting down WebDriverAgent
[XCUITest] System log exited with code 'null'
[debug] [XCUITest] Resetting simulator
[debug] [iOSLog] Stopping iOS log capture
[MJSONWP] Encountered internal error running command: Error: xcodebuild failed with code 65
at SubProcess. (lib/webdriveragent.js:244:25)
at emitTwo (events.js:106:13)
at SubProcess.emit (events.js:191:7)
at ChildProcess. (lib/teen_process.js:191:14)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at Process.ChildProcess.handle.onexit (internal/childprocess.js:204:12)
[HTTP] <-- POST /wd/hub/session 500 9539 ms - 167
My Capabilities is:
DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability(MobileCapabilityType.PLATFORM, "iOS");
capabilities.setCapability(MobileCapabilityType.AUTOMATION_NAME, "XCUITest");
capabilities.setCapability(MobileCapabilityType.DEVICE_NAME, "iPhone di Media");
capabilities.setCapability(MobileCapabilityType.UDID, "2xxxxxxxxxx8");
capabilities.setCapability("bundleId", "com.google.ios.youtube");
capabilities.setCapability("realDeviceLogger", "/usr/local/lib/node_modules/deviceconsole/deviceconsole");
capabilities.setCapability("xcodeConfigFile", "/Users/workspace/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/Configurations/ProjectSettings.xcconfig");
AppiumDriver driver = null;
try {
driver = new IOSDriver(new URL("http://127.0.0.1:4723/wd/hub"), capabilities);
} catch (MalformedURLException e) {
e.printStackTrace();
}
driver.quit();
Thank you for help !!! 