获取此错误命令/ usr / bin / codesign失败,退出代码1使用xcode 9.1? [英] Getting this error command /usr/bin/codesign failed with exit code 1 with xcode 9.1?

查看:311
本文介绍了获取此错误命令/ usr / bin / codesign失败,退出代码1使用xcode 9.1?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到此错误

/Users/macbook/Library/Developer/Xcode/DerivedData/xxxxx-egjyfcyhdfcgftavbtoudbcgthja/Build/Products/Debug-iphoneos/xxxx.app: unknown error -1=ffffffffffffffff

command /usr/bin/codesign failed with exit code 1 

在构建应用程序时使用xcode 9.1 / ios11.1,之前我能够顺利运行我的应用程序。知道可能是什么问题。我已经尝试了以下步骤:

with xcode 9.1/ios11.1 while building the application, earlier i was able to run my application smoothly. Any idea what could be the issue. I have already tried following steps:

删除所有派生数据。

更新所有配置文件和证书。

update all provisioning profile and certificates.

但仍然没有运气。

推荐答案

尝试更新您的keyChain密码。为此尝试以下

Try updating your keyChain password. For that try following


  • 如果您不知道旧密码,解决方案是创建一个新的
    登录钥匙串。

  • If you don't know your old password, the solution is to create a new login keychain.

如果您知道您的旧密码,请使用该密码更新您现有的登录钥匙串:

If you know your old password, use that password to update your existing login keychain:


  1. 打开Keychain Access应用程序,该应用程序位于Applications文件夹的Utilities文件夹中。

  2. 从左侧的钥匙串列表中窗口,选择登录。

  3. 从菜单栏的编辑菜单中选择更改钥匙串登录密码。

  4. 输入当前密码字段中的用户帐户的旧密码。

  5. 这是您在重置密码之前使用的密码。

  6. 在新密码字段中输入您的用户帐户的新密码。这是您现在用于登录Mac的密码。在验证字段中输入相同的密码。

  1. Open the Keychain Access app, which is in the the Utilities folder of your Applications folder.
  2. From the list of keychains on the left side of the window, select "login."
  3. From the Edit menu in the menu bar, choose "Change Password for Keychain 'login.'"
  4. Enter the old password of your user account in the Current Password field.
  5. This is the password you were using before the password was reset.
  6. Enter the new password of your user account in the New Password field. This is the password you're now using to log in to your Mac. Enter the same password in the Verify field.


完成后单击确定,然后退出钥匙串访问。退出Xcode,重新打开项目并尝试构建它应该工作的项目。

Click OK when done, then quit Keychain Access. Quit your Xcode, reopen the project and try building your project it should work.

这篇关于获取此错误命令/ usr / bin / codesign失败,退出代码1使用xcode 9.1?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆