现在的位置: 首页 > 综合 > 正文

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

2018年02月14日 ⁄ 综合 ⁄ 共 1627字 ⁄ 字号 评论关闭

在9月18日开始更新了xcode最新版本后,大多数朋友也更新了,但是不幸的是有些朋友会遇到下面的问题 

CodeSign /Users/Justinjing/Library/Developer/Xcode/DerivedData/PAChat-gmruiapdstkomzhdovxaqijjeyrt/Build/Products/Debug-iphoneos/GodTVPlay.app
    cd /Users/Justinjing/Desktop/project/PAChat
    export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate
    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"

Signing Identity:     "iPhone Developer: Justinjing (6ZM8N7CJE9)"
Provisioning Profile: "iOS Team Provisioning Profile: com.Justinjing.*"
                      (1bea6a7e-8631-486e-889e-4b062337ae5e)


    /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


CGDBA25FC97FA851693DEEB23A01AD91B2D00526: no identity found
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成功。

抱歉!评论已关闭.