Ios 10 with xcode 8 issue

Hello
I am using Appium v.1.6.0 -beta1, xcode 8, ios 10 real device
The issue is that I cannot install my app on the device.
I get an error of:
[XCUITest]
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:236:25)
at emitTwo (events.js:87:13)

I noticed that it is a new issue and I did not find any solution on git.
Any chance there is a solution for this issue?

navigate to webdriveragent folder and open the project in xcode. select a signing certificate and profisioning profile, and save the project - that should work now

Thanks for your reply
I have done your solution and now I have a different error:

[XCUITest] Waiting for WebDriverAgent to start on device
(node:13278) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 3): Error: spawn EACCES
[debug] [XCUITest] Log file for xcodebuild test: /Users/sarayzuriel/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs/Test/3D21C14A-D6D6-4025-B327-345C1609FC92/Session-WebDriverAgentRunner-2016-09-21_111853-icjqXw.log

Any idea?

Sorry mate, I’ve not seen that one I don’t think.
EACCESS usually indicates a permission error on a file or something though - do you have read access to the app you’re trying to build or deploy? Have you signed it for the right device UUID? I’d be looking at that sort of thing

I was able to solve this issue.
After I changed the path for the realDeviceLogger the issue resolved.