一个签名错误的解决——codesign failed with exit code 1
来源:互联网 发布:无法无天吾知txt下载 编辑:程序博客网 时间:2024/05/17 03:24
一个签名错误的解决——codesign failed with exit code 1
前日,Macbook的硬盘不幸挂了,于是将开发环境迁移到Mac Mini下。大家知道,对于Xcode来说,最麻烦的就是各种证书、ProvisioningProfile的配置问题。将原来的各种开发证书和.p12证书导入到mini上,接下来就碰到了各种莫名其妙的问题。先是无法development(可以debug),发现是证书导错了(没有用Agent证书,只有Agent可以发布)。于是制作证书请求,重新下载证书。
等到部署的问题解决后,又发现无法调试——真机可以,但模拟器不行,一进入程序就退出,不报任何错误。试了各种招数都不行,怀疑是模拟器问题。于是卸了Xcode重装。重启后问题解决。
但又出现新的问题。模拟器可以调试程序了,真机调试可以编译,但无法运行,报错codesign failded with exit code 1。网上查了下资料,没解决问题。
后来打开错误日志发现下列描述:
iPhone Developer: Hongyan Yang (GNF23CPXYK):ambiguous (matches "iPhone Developer: Hongyan Yang (GNF23CPXYK)" in/Users/km-cn/Library/Keychains/login.keychain and "iPhone Developer:Hongyan Yang (GNF23CPXYK)" in /Library/Keychains/System.keychain)
Command/usr/bin/codesign failed with exit code 1
原来是钥匙串系统帐号和登录帐号中的证书冲突了。打开钥匙串,查看登录帐号中的开发者证书(注意identifier为 GNF23CPXYK 的证书):
查看系统帐号下也有两个identifier为GNF23CPXYK 的证书,显然导证书的时候不知道怎么把证书导进了系统帐号,并且还重复了。把这两个证书删除,关闭钥匙串,问题解决。
- 一个签名错误的解决——codesign failed with exit code 1
- 一个签名错误的解决——codesign failed with exit code 1
- iOS 一个签名错误的解决——codesign failed with exit code 1
- ios错误汇总1:codesign failed with exit code 1
- 错误:Command /usr/bin/codesign failed with exit code 1
- 配置程序及解决Command /usr/bin/codesign failed with exit code 1错误
- xcode 真机编译codesign failed with exit code 1错误 解决
- libswiftCore.dylib: codesign failed with exit code 1错误的解决办法
- 关于Command /usr/bin/codesign failed with exit code 1错误的解决办法
- linker command failed with exit code 1 错误的解决
- CSSMERR_TP_NOT_TRUSTED Command /usr/bin/codesign failed with exit code 1错误解决办法
- 真机编译错误:Command /usr/bin/codesign failed with exit code 1 解决方法
- 真机编译错误:Command /usr/bin/codesign failed with exit code 1 解决方法
- 错误处理:Command /usr/bin/codesign failed with exit code 1
- xcode8 编译证书出现错误 /usr/bin/codesign failed with exit code 1
- Xcode 升级后出现错误Command /usr/bin/codesign failed with exit code 1
- 解决Xcode报错:Command /usr/bin/codesign failed with exit code 1
- [iPhone]command /usr/bin/codesign failed with exit code 1
- ORACLE 时间操作
- web.xml从2.3到2.4的issue
- linux下如何发送邮件?
- 启发式搜索——A*算法的实现
- Photo Picker + SDK:任意平台&任何应用都可即时抓图
- 一个签名错误的解决——codesign failed with exit code 1
- mysql 存储过程中表名使用参数传入
- The Python Tutorial 3.2-6Modules(模块)
- 每天一道编程题(一)----24点游戏
- TOMCAT配置技巧
- iOS开发中的对象系统基础
- 数据结构知识
- 11个有用的移动网页开发App和HTML5框架
- 网页跳转代码大全