真机调试的时候出现no identity foundCommand /usr/bin/codesign failed with exit code 1

来源:互联网 发布:hyper v 网络设置 编辑:程序博客网 时间:2024/06/18 09:35

今天真机调试的时候出现了下面的错误,昨天还好好的

CodeSign /Users/Justinjing/Library/Developer/Xcode/DerivedData/PAChat-gmruiapdstkomzhdovxaqijjeyrt/Build/Products/Debug-iphoneos/GodTVPlay.app

    cd /Users/Justinjing/Desktop/project/PAChat
    export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"

Signing Identity:     "iPhone Developer: xxxxxxxx (xxxxxxxxxxx)"
Provisioning Profile: "iOS Team Provisioning Profile: com.xxxxxxxx.*"
                      (f5399de4-cb00-4796-9f27-1719bf2cd2a3)

    /usr/bin/codesign --force --sign CGDBA25FC97FA851693DEEB23A01AD91B2D00526 --resource-rules=/Users/justinjing/Library/Developer/Xcode/DerivedData/PAChat-gmruiapdstkomzhdovxaqijjeyrt/Build/Products/Debug-iphoneos/PAChat.app/ResourceRules.plist --entitlements /Users/leeping/Library/Developer/Xcode/DerivedData/PAChat-gmruiapdstkomzhdovxaqijjeyrt/Build/Intermediates/PAChat.build/Debug-iphoneos/PAChat.build/PAChat.app.xcent /Users/justinjing/Library/Developer/Xcode/DerivedData/PAChat-gmruiapdstkomzhdovxaqijjeyrt/Build/Products/Debug-iphoneos/PAChat.app


DB0AE56EF80AE012474BEEB23A01AD91B2D00526: no identity found

Command /usr/bin/codesign failed with exit code 1


http://blog.csdn.net/justinjing0612/article/details/39677693 这里找到了出现同样问题的帖子,按照方法改,但是发现我的并没有两个同样的com.xxxxxx,只能继续查

回想下,我的开发者账号是9月份初到期的,刚续费了,难道是证书哪里出了问题,然后登陆开发者账号查看,并没有看到哪里异常啊,但仔细一查发现了问题,在Provisioning Profiles下仔细查看每个profile,找到了问题所在,因为到期续费后,profile下的Certificates:会自动变为没有选中的状态,难怪了。按照图片的勾选后重新下载安装,重新编译运行,OK。

0 0
原创粉丝点击