博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
准备上线,切换到master分支,报错
阅读量:6821 次
发布时间:2019-06-26

本文共 2996 字,大约阅读时间需要 9 分钟。

切换到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里面,

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

再谷歌, 网友说, 可能是证书重复的问题:  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.仔细看报错信息

转载于:https://www.cnblogs.com/tufei7/p/6159811.html

你可能感兴趣的文章
ZooKeeper应用案例
查看>>
springboot(二):thymeleaf模板开发
查看>>
Android Bluetooth HID实现详解
查看>>
高通camera架构
查看>>
PHP运行模式
查看>>
leetcode Remove Duplicates from Sorted Array
查看>>
spring cloud 与dubbo
查看>>
Linux零拷贝函数SendFile应用
查看>>
linux下创建文件或文件夹快捷方式一个简单地方法
查看>>
SDPhotoBrowser图片浏览器
查看>>
php 使用DOMDocument 解析xml
查看>>
如何7步实现根据源码包创建rpm包
查看>>
hadoop2.0集群搭建详解
查看>>
java调用oracle存储过程
查看>>
Spring Cloud Alibaba基础教程:Nacos配置的多环境管理
查看>>
极乐小程序榜单(第六期)
查看>>
使用Log4j为项目配置日志输出应用详细总结及示例演示.
查看>>
Lua-5.3.2 安装 luasocket 的正确姿势
查看>>
freeswitch实战经验1:服务器向成员主动发起会议邀请
查看>>
python转换文本编码和windows换行符
查看>>