准备上线,切换到master分支,报错

切换到master分支,准备上线,把上次上线sourceTree保存的修改拉出来:

运行,报错了:

stackOverflow一搜说要删除旧的:

我show in finder 把他删了,然后双击安装我上次保存的证书和描述文件

运行,报错:

Showing All Issues
PhaseScriptExecution Embed\ Pods\ Frameworks /Users/songximing/Library/Developer/Xcode/DerivedData/huiju_app-aapmnqithcrnrpggqefaggbgjuzg/Build/Intermediates/huiju_app.build/Release-iphoneos/huiju_app.build/Script-7FCE3D229E67AA316BDEE102.sh
    cd /Users/songximing/fix合同
    /bin/sh -c /Users/songximing/Library/Developer/Xcode/DerivedData/huiju_app-aapmnqithcrnrpggqefaggbgjuzg/Build/Intermediates/huiju_app.build/Release-iphoneos/huiju_app.build/Script-7FCE3D229E67AA316BDEE102.sh

mkdir -p /Users/songximing/Library/Developer/Xcode/DerivedData/huiju_app-aapmnqithcrnrpggqefaggbgjuzg/Build/Products/Release-iphoneos/huiju_app.app/Frameworks
rsync -av --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "/Users/songximing/Library/Developer/Xcode/DerivedData/huiju_app-aapmnqithcrnrpggqefaggbgjuzg/Build/Products/Release-iphoneos/AFNetworking.framework" "/Users/songximing/Library/Developer/Xcode/DerivedData/huiju_app-aapmnqithcrnrpggqefaggbgjuzg/Build/Products/Release-iphoneos/huiju_app.app/Frameworks"
building file list ... done
AFNetworking.framework/
AFNetworking.framework/AFNetworking
AFNetworking.framework/Info.plist

sent 1000613 bytes  received 70 bytes  2001366.00 bytes/sec
total size is 1000244  speedup is 1.00
Code Signing /Users/songximing/Library/Developer/Xcode/DerivedData/huiju_app-aapmnqithcrnrpggqefaggbgjuzg/Build/Products/Release-iphoneos/huiju_app.app/Frameworks/AFNetworking.framework with Identity iPhone Developer: Jin Qian (99B9KYY3U5)
/usr/bin/codesign --force --sign 1F98DEDD6B10853B4A4D60CD50C4640A1D608E8E --preserve-metadata=identifier,entitlements "/Users/songximing/Library/Developer/Xcode/DerivedData/huiju_app-aapmnqithcrnrpggqefaggbgjuzg/Build/Products/Release-iphoneos/huiju_app.app/Frameworks/AFNetworking.framework"
SecKey API returned: -25304, (null)/Users/songximing/Library/Developer/Xcode/DerivedData/huiju_app-aapmnqithcrnrpggqefaggbgjuzg/Build/Products/Release-iphoneos/huiju_app.app/Frameworks/AFNetworking.framework: unknown error -1=ffffffffffffffff
Command /bin/sh failed with exit code 1

这是什么鬼,一顿google,一通stackOverflow, 又是删deviceData,又是更新cocoaPods, 去扣扣群里问,都说的差不多,宇哥说是xcode8的问题,要我勾选:

然而都不行

回家后想到用旧的分支没问题,新的分支就不行,两个分支的区别就是证书配置不同,跟 shell应该没关系

再仔细看报错信息: Run custom shell 'Embed Pods Frameworks'   ,这个就在Build Phases下面的Run Script里面,

两个框都勾选上,果然可以运行了,再运行,提示的是

codesign failed with exit code 1

再谷歌, 网友说, 可能是证书重复的问题:  http://blog.csdn.net/kmyhy/article/details/6640933

根据前辈的经验:,删掉了重复的证书:

 

再运行,提示:这提示好面熟,上次写的博客也是这个报错,😓,谷歌搜出来自己写的博客了....

 Your account already has a signing certificate for this machine but it is not present in your keychain. To create a new one, you must first revoke the existing certificate.
你的账号对这台机器已经有一个签名的证书,但是这个证书不在你的keychain里面,你必须revoke已经存在的这个证书才能创建一个新的

点revoke, 运行,好了

总结下:

1.还是证书的问题

2.仔细看报错信息

posted on 2016-12-11 16:14  土匪7  阅读(3113)  评论(1编辑  收藏  举报