Hi Folks, I am trying to use appium 1.6.0 with ios10 app build with Xcode 8. I and facing below issue. We have set signing certifcate and provisioning profile for WebdriverAgentRunner, as mentioned on https://discuss.appium.io/t/ios-10-with-xcode-8-issue/12267. still we facing same issue. Could anyone help in this?
[Appium] Welcome to Appium v1.6.0 (REV b134e1af00e0aa83f686e31c020c9b2b4ce53b18)
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> POST /wd/hub/session {"desiredCapabilities":{"deviceName":"iPhone 6s","udid":"cfc28f7a68b714e7f0e188bbb802e5316b7643cb","app":"/Users/nagarro/Desktop/Melody_app/home-owner-app.app","autoWebview":"true","realDeviceLogger":"/usr/local/lib/node_modules/deviceconsole/deviceconsole","sendKeyStrategy":"setValue","newCommandTimeout":9000,"platformVersion":"10.0","platformName":"iOS","automationName":"XCUITest"}}
[MJSONWP] Calling AppiumDriver.createSession() with args: [{"deviceName":"iPhone 6s",...
[Appium] Creating new XCUITestDriver session
[Appium] Capabilities:
[Appium] deviceName: 'iPhone 6s'
[Appium] udid: 'cfc28f7a68b714e7f0e188bbb802e5316b7643cb'
[Appium] app: '/Users/nagarro/Desktop/Melody_app/home-owner-app.app'
[Appium] autoWebview: 'true'
[Appium] realDeviceLogger: '/usr/local/lib/node_modules/deviceconsole/deviceconsole'
[Appium] sendKeyStrategy: 'setValue'
[Appium] newCommandTimeout: 9000
[Appium] platformVersion: '10.0'
[Appium] platformName: 'iOS'
[Appium] automationName: 'XCUITest'
[debug] [XCUITest] XCUITestDriver version: 2.0.26
[BaseDriver] Capability 'autoWebview' changed from string to boolean. This may cause unexpected behavior
[BaseDriver] Session created with session id: 2cdaa8f2-16dc-406d-bd8d-81a760089555
[debug] [XCUITest] Xcode version set to '8.0'
[debug] [XCUITest] iOS SDK Version set to '10.0'
[debug] [XCUITest] Available devices: cfc28f7a68b714e7f0e188bbb802e5316b7643cb
[debug] [XCUITest] Creating iDevice object with udid cfc28f7a68b714e7f0e188bbb802e5316b7643cb
[XCUITest] Determining device to run tests on: udid: 'cfc28f7a68b714e7f0e188bbb802e5316b7643cb', real device: true
[BaseDriver] Using local app '/Users/nagarro/Desktop/Melody_app/home-owner-app.app'
[debug] [XCUITest] Checking whether app is actually present
[debug] [ios-app-utils] Getting bundle ID from app
[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 6s 'iPhone 6s' (cfc28f7a68b714e7f0e188bbb802e5316b7643cb).
true
[debug] [XCUITest] App is installed.
[debug] [XCUITest] Full reset not requested. No need to install.
[XCUITest] Using default agent: /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj
[XCUITest] Using default bootstrap: /usr/local/lib/node_modules/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 '/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/bin/run-xcodebuild.sh --project /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj --scheme WebDriverAgentRunner --destination id=cfc28f7a68b714e7f0e188bbb802e5316b7643cb' 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: /var/root/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs/Test/34C92D99-1512-489E-8647-22220A2D7560/Session-WebDriverAgentRunner-2016-10-26_135756-gbtV3x.log
[Xcode] 2016-10-26 13:58:00.699 xcodebuild[6745:99493] Error Domain=IDETestOperationsObserverErrorDomain Code=3 "Test operation was canceled. If you believe this error represents a bug, please attach the log file at /var/root/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs/Test/34C92D99-1512-489E-8647-22220A2D7560/Session-WebDriverAgentRunner-2016-10-26_135756-gbtV3x.log" UserInfo={NSLocalizedDescription=Test operation was canceled. If you believe this error represents a bug, please attach the log file at /var/root/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs/Test/34C92D99-1512-489E-8647-22220A2D7560/Session-WebDriverAgentRunner-2016-10-26_135756-gbtV3x.log}
[Xcode]
Testing failed:
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.0'
** 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 '/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/bin/run-xcodebuild.sh --project /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj --scheme WebDriverAgentRunner --destination id=cfc28f7a68b714e7f0e188bbb802e5316b7643cb' 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: /var/root/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs/Test/5900F295-6525-49A8-9FAB-6D8F213287C6/Session-WebDriverAgentRunner-2016-10-26_135806-V8J7eI.log
[Xcode] 2016-10-26 13:58:10.684 xcodebuild[6982:99893] Error Domain=IDETestOperationsObserverErrorDomain Code=3 "Test operation was canceled. If you believe this error represents a bug, please attach the log file at /var/root/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs/Test/5900F295-6525-49A8-9FAB-6D8F213287C6/Session-WebDriverAgentRunner-2016-10-26_135806-V8J7eI.log" UserInfo={NSLocalizedDescription=Test operation was canceled. If you believe this error represents a bug, please attach the log file at /var/root/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs/Test/5900F295-6525-49A8-9FAB-6D8F213287C6/Session-WebDriverAgentRunner-2016-10-26_135806-V8J7eI.log}
[Xcode] Code signing is required for product type 'UI Testing Bundle' in SDK 'iOS 10.0'
[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.0'
** 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:294:25)
at emitTwo (events.js:87:13)
at SubProcess.emit (events.js:172:7)
at ChildProcess. (lib/teen_process.js:191:14)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at Process.ChildProcess.handle.onexit (internal/childprocess.js:200:12)
[Error: xcodebuild failed with code 65]
[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:294:25)
at emitTwo (events.js:87:13)
at SubProcess.emit (events.js:172:7)
at ChildProcess. (lib/teen_process.js:191:14)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at Process.ChildProcess.handle.onexit (internal/childprocess.js:200:12)
[HTTP] <-- POST /wd/hub/session 500 22337 ms - 167