Xcode 8 signing errors, can't login with account and no provisioning profile

bigreddawg picture bigreddawg · Jan 6, 2017 · Viewed 24.4k times · Source

When I run my application, two errors appear in the Signing part of the General tab of the project. One says, "The operation couldn't be completed. Unable to log in with account ________" while the other says "No profiles for ________ were found." It mentions that Xcode couldn't find a provisioning profile. What does this mean, and how do I fix it?

Answer

Geoff Johnson picture Geoff Johnson · Feb 26, 2017

I can't take credit for this solution, it came from BrianBatchelder on the apple forum.

I had to go to "XCode" -> "Preferences" -> "Accounts", where it turned out my Apple ID had timed-out. After logging-in there, and then restarting Xcode, my profile was automatically "repaired", and all is now well.

Re-starting Xcode is important there, it doesn't work without it.