Build failed. Signing this app requires a development profile. Development profile selected

I am trying to build a Unity 3D app for iOS using Xcode. My app used to build successfully earlier but for some reason it has stopped building now and I get the error saying signing for "Unity-iPhone" requires a development team. I have selected automatically manage signing and also selected my personal development team.

Build failed. Signing this app requires a development profile. Development profile selected
 
 
Q