I am trying to launch App in my real ios device but it throws below Error.
I am using xcode 8.1 and Appium version 1.6.1 beta
Logs:
zugas-MacBook-Air:~ azugainc$ [HTTP] --> POST /wd/hub/session {“desiredCapabilities”:{“app”:"/Users/azugainc/Desktop/fmbuild/AzugaFleetMobile.app",“realDeviceLogger”:"/usr/local/lib/node_modules/deviceconsole/deviceconsole",“platformVersion”:“10.1”,“automationName”:“XCUITest”,“platformName”:“iOS”,“udid”:“ee961818e9205745a1822aed1e085809d35d5d6e”,“deviceName”:“user’s iPhone”}}
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{“app”:"/Users/azugainc/Desktop/fmbuild/AzugaFleetMobile.app",“realDeviceLogger”:"/usr/local/lib/node_modules/deviceconsole/deviceconsole",“platformVersion”:“10.1”,“automationName”:“XCUITest”,“platformName”:“iOS”,“udid”:“ee961818e9205745a1822aed1e085809d35d5d6e”,“deviceName”:“user’s iPhone”},null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null]
[Appium] Creating new XCUITestDriver session
[Appium] Capabilities:
[Appium] app: ‘/Users/azugainc/Desktop/fmbuild/AzugaFleetMobile.app’
[Appium] realDeviceLogger: ‘/usr/local/lib/node_modules/deviceconsole/deviceconsole’
[Appium] platformVersion: ‘10.1’
[Appium] automationName: ‘XCUITest’
[Appium] platformName: ‘iOS’
[Appium] udid: ‘ee961818e9205745a1822aed1e085809d35d5d6e’
[Appium] deviceName: ‘user’s iPhone’
[debug] [XCUITest] XCUITestDriver version: 2.0.37
[BaseDriver] Session created with session id: 92fcec11-467b-4a7f-96c2-7aac719582cc
[debug] [XCUITest] Xcode version set to ‘8.1’
[debug] [XCUITest] iOS SDK Version set to ‘10.1’
[debug] [XCUITest] Available devices: ee961818e9205745a1822aed1e085809d35d5d6e
[debug] [XCUITest] Creating iDevice object with udid ee961818e9205745a1822aed1e085809d35d5d6e
[XCUITest] Determining device to run tests on: udid: ‘ee961818e9205745a1822aed1e085809d35d5d6e’, real device: true
[BaseDriver] Using local app ‘/Users/azugainc/Desktop/fmbuild/AzugaFleetMobile.app’
[debug] [XCUITest] Checking whether app ‘/Users/azugainc/Desktop/fmbuild/AzugaFleetMobile.app’ is actually present
[debug] [XCUITest] App is present
[debug] [ios-app-utils] Getting bundle ID from app ‘/Users/azugainc/Desktop/fmbuild/AzugaFleetMobile.app’: ‘com.azuga.smartfleet’
[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 ee961818e9205745a1822aed1e085809d35d5d6e --bundle_id com.azuga.smartfleet’ 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] 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=ee961818e9205745a1822aed1e085809d35d5d6e -configuration Debug’ 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/azugainc/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs/Test/9BEB6DF9-90BA-453D-B090-1804B5C89D05/Session-WebDriverAgentRunner-2016-11-22_234538-JYJAPZ.log
[Xcode] 2016-11-22 23:45:42.095 xcodebuild[6523:82048] Error Domain=IDETestOperationsObserverErrorDomain Code=3 “Test operation was canceled. If you believe this error represents a bug, please attach the log file at /Users/azugainc/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs/Test/9BEB6DF9-90BA-453D-B090-1804B5C89D05/Session-WebDriverAgentRunner-2016-11-22_234538-JYJAPZ.log” UserInfo={NSLocalizedDescription=Test operation was canceled. If you believe this error represents a bug, please attach the log file at /Users/azugainc/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs/Test/9BEB6DF9-90BA-453D-B090-1804B5C89D05/Session-WebDriverAgentRunner-2016-11-22_234538-JYJAPZ.log}
[Xcode] The file “ProjectSettings.xcconfig” couldn’t be opened because there is no such file. (/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/Configurations/ProjectSettings.xcconfig)
[Xcode] Signing for “WebDriverAgentRunner” requires a development team. Select a development team in the project editor.
[Xcode] Code signing is required for product type ‘UI Testing Bundle’ in SDK ‘iOS 10.1’
[Xcode] Signing for “WebDriverAgentRunner” requires a development team. Select a development team in the project editor.
[Xcode] Code signing is required for product type ‘UI Testing Bundle’ in SDK ‘iOS 10.1’
[Xcode] Signing for “WebDriverAgentRunner” requires a development team. Select a development team in the project editor.
Code signing is required for product type ‘UI Testing Bundle’ in SDK ‘iOS 10.1’
Code signing is required for product type ‘UI Testing Bundle’ in SDK ‘iOS 10.1’
[Xcode]
[Xcode]
Testing failed:
[Xcode] Signing for “WebDriverAgentRunner” requires a development team. Select a development team in the project editor.
Code signing is required for product type ‘UI Testing Bundle’ 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 sub-processes
[XCUITest] Shutting down Logger process (pid 6528)
[XCUITest] System log exited with code ‘null’
[debug] [XCUITest] Removing WDA application from device
[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] 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=ee961818e9205745a1822aed1e085809d35d5d6e -configuration Debug’ 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/azugainc/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs/Test/16F9C100-F12E-40B4-93B2-2DA005805580/Session-WebDriverAgentRunner-2016-11-22_234546-nnyy7b.log
[Xcode] 2016-11-22 23:45:50.451 xcodebuild[6779:82439] Error Domain=IDETestOperationsObserverErrorDomain Code=3 “Test operation was canceled. If you believe this error represents a bug, please attach the log file at /Users/azugainc/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs/Test/16F9C100-F12E-40B4-93B2-2DA005805580/Session-WebDriverAgentRunner-2016-11-22_234546-nnyy7b.log” UserInfo={NSLocalizedDescription=Test operation was canceled. If you believe this error represents a bug, please attach the log file at /Users/azugainc/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs/Test/16F9C100-F12E-40B4-93B2-2DA005805580/Session-WebDriverAgentRunner-2016-11-22_234546-nnyy7b.log}
[Xcode] Code signing is required for product type ‘UI Testing Bundle’ in SDK ‘iOS 10.1’
[Xcode] Signing for “WebDriverAgentRunner” requires a development team. Select a development team in the project editor.
[Xcode] Code signing is required for product type ‘UI Testing Bundle’ in SDK ‘iOS 10.1’
Code signing is required for product type ‘UI Testing Bundle’ in SDK ‘iOS 10.1’
[Xcode]
[Xcode]
Testing failed:
Signing for “WebDriverAgentRunner” requires a development team. Select a development team in the project editor.
Code signing is required for product type ‘UI Testing Bundle’ 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:332: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/child_process.js:215:12)
Error: xcodebuild failed with code 65
at SubProcess. (…/…/lib/webdriveragent.js:332: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/child_process.js:215:12)
[XCUITest] Shutting down sub-processes
[XCUITest] Shutting down Logger process (pid 6784)
[XCUITest] System log exited with code ‘null’
[debug] [XCUITest] Running ios real device reset flow
[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:332: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/child_process.js:215:12)
[HTTP] <-- POST /wd/hub/session 500 24087 ms - 167