Xcode error: Code signing is required for product type 'Application' in SDK 'iOS 10.0'
To add developer account to Xcode:
Press Cmd ⌘ + , (comma)
Go to
Accounts
tabFollow the screen shot below to enable development team:
With Xcode-8.1 & iOS-10.1
- Add your Apple ID in Xcode
Preferences
>Accounts
>Add Apple ID
:
- Enable signing to Automatically && Select Team that you have created before:
- Change the Bundle Identifier:
- Code Signing to iOS Developer:
- Provision profile to Automatic:
You can now run your project on a device!
In case you are still having this problem, click on the Tests and select a team for them too.