Your Xcode still works fine and on a nice day you get some errors when building the project. Maybe the problem comes from your co-workers or project co-workers changing and committing their configuration file to xcode ?. and so ?
- Go to Your Application -> the General Tab. Under the signing section, check/uncheck/check ?Automatically manage signing?. (Make sure that you will not get a status of red error ) .
- Try to Clean and Build.
Just Clean , quit Xcode and opened it again.
Go to Xcode/Preferences/AccountsClick on your apple id account;Click ? ?View Details? (that open new window with ?signing identities? and ?provisioning profiles?;Delete all certificates from ?Provisioning profiles?, empty trash;Delete your Apple-ID accountLog in again with your apple id and build app?.
4 Way Check your config XCode .
Go to Build Settings ->User Defined ->Provisioning profile (Remove this)
Hope this helps !!!