技术之窗

迷茫不是你堕落的理由!-心中充满阳光。

更新xcode6 运行报错 Command /usr/bin/codesign failed with exit code 1

[html] view plaincopy在CODE上查看代码片派生到我的代码片
  1. CodeSign /Users/Justinjing/Library/Developer/Xcode/DerivedData/PAChat-gmruiapdstkomzhdovxaqijjeyrt/Build/Products/Debug-iphoneos/GodTVPlay.app  
  2.     cd /Users/Justinjing/Desktop/project/PAChat  
  3.     export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate  
  4.     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"  
  5.   
  6. Signing Identity:     "iPhone Developer: Justinjing (6ZM8N7CJE9)"  
  7. Provisioning Profile: "iOS Team Provisioning Profile: com.Justinjing.*"  
  8.                       (1bea6a7e-8631-486e-889e-4b062337ae5e)  
  9.   
  10.   
  11.     /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  
  12.   
  13.   
  14. CGDBA25FC97FA851693DEEB23A01AD91B2D00526: no identity found  
  15. Command /usr/bin/codesign failed with exit code 1  

看到这个日志好多朋友会头痛,因为大片的log,很迷茫,不用怕,其实也很简单,我们要抓住关键,
CGDBA25FC97FA851693DEEB23A01AD91B2D00526: no identity found
也就是找不到对于的profile文件,这个很纳闷我的keychian里面又com.Justinjing.*"的profile文件为什么还报错呢?
纳闷之下,我就用“iphone配置使用工具”打开了看了看发现了二个同样的com.Justinjing.*,

仔细一看一个是过期的,罪魁祸首找到了,
我就删除了过期的profile,然后重启xcode,bulid成功。
阅读更多
文章标签: xcode command html
个人分类: iOS开发-随笔
上一篇iOS Developer Library 官方文档
下一篇xcode APP 打包以及提交apple审核详细流程(新版本更新提交审核)
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

关闭
关闭