Code Sign error: No codesigning identities found: No codesigning identities (i.e.
My fix for this problem was:
Xcode > Preferences. In Accounts click on your Apple ID. Click View Details, click on your projects Provisioning Profile (I think this helps) and click the refresh button bottom left.