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

[html]  view plain copy
  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.*,
更新xcode6 运行报错 Command /usr/bin/codesign failed with exit code 1_第1张图片
仔细一看一个是过期的,罪魁祸首找到了,
我就删除了过期的profile,然后重启xcode,bulid成功。

你可能感兴趣的:(iOS开发-随笔)