The identity 'iPhone Developer: XXXXXXXXX (***************)' doesn't match any valid, non-expired certificate/private key pair in your keychains
出现这种状况是因为该项目已经有其他开发证书进行了真机调试,而这个证书不是你的
解决方法:进入Build Settings中》Code Signing下Code Signing Identity中Debug和Release的Any iOS SDK中的选项改为自己的证书即可
然后运行程序会提示error: could not read CFBundleIdentifier from Info.plist (null)
这是同样是由于该项目已经用其他人的开发这证书进行过真机测试而引起的,解决方案:
新建一个同名工程,拷贝其plist文件,将原工程中的plist文件替换掉即可。