XCode Build and Archive menu disabled - grayed out
Man, I spent an inordinate amount of time on this. The drop-down combo box at the very top left of XCode where you specify the iOS version and SDK...it's on Simulator. Change it to "Device."
Hopefully this helps someone. RTFM also helped for me.