I had this exact same issue and I resolved it by following the instructions from here:
http://reaver.angka.net/questions/12359292/how-is-code-signing-done-in-xcode-4-5