更新证书和配置时的问题

时间:2011-04-06 05:01:26

标签: ios code-signing

我的ios证书已过期。 所以我调用旧证书并创建一个新证书并修改每个应用程序的配置(使用相同的Apple ID)。

我下载了证书(distribution_identity.cer)和app .mobileprovision文件,并添加到'keychian'和'Xcode'。

在“编辑活动目标”中,我可以看到“Code Siging Identity”显示新的配置文件,但是当我构建项目时,它报告了错误:

CodeSign "build/Ad Hoc-iphoneos/myApp.app"
cd "/Users/myName/iphone source code/myApp All/myApp 1.2"
setenv PATH "/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
setenv _CODESIGN_ALLOCATE_ /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate
/usr/bin/codesign -f -s "iPhone Distribution: MYNAME" "--resource-rules=/Users/myName/iphone source code/myApp All/myApp 1.2/build/Ad Hoc-iphoneos/myApp.app/ResourceRules.plist" --entitlements "/Users/myName/iphone source code/myApp All/myApp 1.2/build/myApp.build/Ad Hoc-iphoneos/myApp.build/myApp.xcent" "/Users/myName/iphone source code/myApp All/myApp 1.2/build/Ad Hoc-iphoneos/myApp.app"


iPhone Distribution: MYNAME: ambiguous (matches "iPhone Distribution: MYNAME" in /Users/myname/Library/Keychains/login.keychain and "iPhone Distribution: MYNAME" in /Library/Keychains/System.keychain)
Command /usr/bin/codesign failed with exit code 1

欢迎任何评论

谢谢

1 个答案:

答案 0 :(得分:2)

错误消息似乎告诉您需要知道的内容:

  

iPhone发布:MYNAME:暧昧   (匹配“iPhone发布:MYNAME”   在   /Users/myname/Library/Keychains/login.keychain   和“iPhone发行:MYNAME”   /Library/Keychains/System.keychain)

您有两个与“iPhone Distribution:MYNAME”名称匹配的证书,CodeSign不知道使用哪个证书。