ios应用程序出错:命令/ usr / bin / codesign失败,退出代码为1 [英] Error for ios app: Command /usr/bin/codesign failed with exit code 1

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

问题描述

我有一个适用于IoS的Ionic3应用程序。直到昨天我才能在xcode9中打开.xcodeproj并将应用程序上传到我的iphone。我不知道出了什么问题,但现在我收到此错误命令/ usr / bin / codesign失败,退出代码为1,无法将应用程序上传到手机(使用电缆)或存档。

I have a Ionic3 app for IoS. Until yesterday I was able to open the .xcodeproj in xcode9 and upload the app to my iphone. I have no idea what went wrong but now I get this error "Command /usr/bin/codesign failed with exit code 1" and can not upload the application to phone (using cable) or archive it.

我的技术:

cli packages :( / usr / local / lib / node_modules)

cli packages: (/usr/local/lib/node_modules)

@ionic/cli-utils  : 1.15.2
ionic (Ionic CLI) : 3.15.2

全球套餐

cordova (Cordova CLI) : 6.4.0 

本地套餐

@ionic/app-scripts : 2.1.3
Cordova Platforms  : android 6.0.0 ios 4.3.1
Ionic Framework    : ionic-angular 3.6.0

系统

ios-deploy : 1.9.0 
ios-sim    : 6.1.2 
Node       : v7.3.0
npm        : 3.10.10 
OS         : macOS Sierra
Xcode      : Xcode 9.0.1 Build version 9A1004 

关于我的错误的更多详细信息:

More details about my error:

CodeSign /Users/macbook/Library/Developer/Xcode/DerivedData/HelloCordova-bsbygjyhdfcgftavbtgwrsqhgdkb/Build/Products/Debug-iphoneos/HelloCordova.app

cd /Users/macbook/ionic/componentaalex3/platforms/ios
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/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"

Signing Identity:     "iPhone Developer: Alex Claudiu (xxxxxxxxxxxx)"
Provisioning Profile: "iOS Team Provisioning Profile: *" (32d4f44b-xxxxxxxxxxxx.........................)

/usr/bin/codesign --force --sign 0E9C82C58EED8DD6B6F1DAF2709E5714F67E568B --entitlements 
/Users/macbook/Library/Developer/Xcode/DerivedData/HelloCordova-bsbygjyhdfcgftavbtgwrsqhgdkb/Build/Intermediates.noindex/HelloCordova.build/Debug-iphoneos/HelloCordova.build/HelloCordova.app.xcent --timestamp=none 
/Users/macbook/Library/Developer/Xcode/DerivedData/HelloCordova-bsbygjyhdfcgftavbtgwrsqhgdkb/Build/Products/Debug-iphoneos/HelloCordova.app

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

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

在这种情况下我该怎么办?我是否必须在Apple开发者帐户中进行其他设置或更改xcode中的内容?

What shall I do in this situation? Do I have to make additional setup in the my Apple developer account or to change something in xcode?

非常感谢。

推荐答案

感谢您的回答。我尝试过Clean和Build但没有解决错误。不知怎的,我弄清楚问题是Keychain访问。我不得不重写密码,如 https://support.apple.com/ro-ro/ HT201609

Thanks for the answer. I've tried Clean and Build but didn't solve the errors. Somehow I figure it out that the problem was the Keychain access. I had to rewrite the password as described here https://support.apple.com/ro-ro/HT201609

这篇关于ios应用程序出错:命令/ usr / bin / codesign失败,退出代码为1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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