1. Code Sign error: a valid provisioning profile matching the application's Identifier 'com.yourcompany.name‘ is not found
查看对应id是否都匹配,(1) summary的bundle identifier与provisioning profiles的App Identifier一致,(2)项目info中得Bundle identifier是否与与provisioning profiles的App Identifier一致,还有资源上的sample.plist的id是否一致
2.No unexpired provisioning profiles found that contain any of the keychain's signing certificates
Organizer->Devices->Provisioning Profiles 中的App Identifier的com及之后部分是否与TARGETS->Summary->iOS Application Target->Bundle Identifier 相符,特别是后面的项目名称
还有一个地方会报这个错,build setting->code signing identity->debug->any iOS sdk改为iphone developer(正确地证书)
3.编译报错,sbtarget is invalid
解决办法是对应资源plist名称为info,改为其他即可。
4.Code Sign error: Certificate identity 'iPhone Developer: idf (XR9HN3TD7E)' appears more than once in the keychain. The codesign tool requires there only be one.
原因是证书,下载安装重复了,找到安装证书的位置,删除一个就ok了。
5.Code Sign Error: Provisioning Profile can't be found.
右键*.xcodeproj文件,显示包内容,texteditor打开project.pbxproj文件,搜索类似
PROVISIONING_PROFILE = "487F3EAC-05FB-4A2A-9EA0-31F1F35760EB";
"PROVISIONING_PROFILE[sdk=iphoneos*]" = "487F3EAC-05FB-4A2A-9EA0-31F1F35760EB";
出现上述问题还是没解决的话,建议先重新generate Provisioning Profiles 试试看,还是不行就删掉证书重新注册导入,然后generate Provisioning Profiles 。
还是没解决,请求救google大人!!!