xcode E79CDDB501B68E74DDF03EA4E75246A7FDF010D0:未找到身份命令 /usr/bin/codesign 失败,退出代码为 1
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/26376166/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
E79CDDB501B68E74DDF03EA4E75246A7FDF010D0: no identity found Command /usr/bin/codesign failed with exit code 1
提问by aric
I am facing codesign issue.
我正面临协同设计问题。
I am using Xcode 6.0.1 and Os x server 3.2.1
我使用的是 Xcode 6.0.1 和 Os x server 3.2.1
E79CDDB501B68E74DDF03EA4E75246A7FDF010D0: no identity found
Command /usr/bin/codesign failed with exit code 1
I tried all possible answers which are in Stack Overflow but i am unable to resolve this issue. Can anyone help me out with this issue. ??
我尝试了 Stack Overflow 中所有可能的答案,但我无法解决这个问题。谁能帮我解决这个问题。??
The error log is as follows
错误日志如下
/usr/bin/codesign --force --sign E79CDDB501B68E74DDF03EA4E75246A7FDF010D0 --keychain /Library/Developer/XcodeServer/Keychains/Portal.keychain --resource-rules=/Library/Developer/XcodeServer/Integrations/Caches/145dbe87fd1e5d8c0544850b54f3/DerivedData/Build/Products/Debug-iphoneos/SocialCircles.app/ResourceRules.plist --entitlements /Library/Developer/XcodeServer/Integrations/Caches/145dbe887fd1e5d8c0544850b54f34c8/DerivedData/Build/Intermediates/SocialCircles.build/Debug-iphoneos/XXX.build/xxx.app.xcent /Library/Developer/XcodeServer/Integrations/Caches/145dbe887fd1e5d8c0544850b54f34c8/DerivedData/Build/Products/Debug-iphoneos/xxx.app
I checked Library/Developer/XcodeServer/Keychains/Portal.keychain
through CL. It has only
我Library/Developer/XcodeServer/Keychains/Portal.keychain
通过CL检查。它只有
r-------- 1 _xcsbuildd _xcs 86032 Oct 15 10:21 Portal.keychain?
I guess Portal.keychain should have codesign, xcodebuild also. I tried to import it using the answer provided in Stack Overflow by seanwolter
我猜 Portal.keychain 应该有 codesign,xcodebuild 也应该有。我尝试使用seanwolter在 Stack Overflow 中提供的答案导入它
sudo security import "/Users/administrator/Desktop/someCertificate.p12" -P PASSWORD -k /Library/Developer/XcodeServer/Keychains/Portal.keychain -A -T /usr/bin/codesign -T /usr/bin/xcodebuild -T /usr/bin/pkgbuild
but i am getting this error
但我收到这个错误
security: SecKeychainItemImport: The specified keychain could not be found.
安全性:SecKeychainItemImport:找不到指定的钥匙串。
I dont know how to go about this issue. Please help me out...!!!
我不知道如何解决这个问题。请帮帮我...!!!
回答by Sreejith
I had the same issue. I fixed it through the following method :
我遇到过同样的问题。我通过以下方法修复了它:
Xcode > Preferences > Accounts > View Details > And just refresh the Provisioning Profile
Then Restart the Xcode and Clean and Build.
然后 Restart the Xcode and Clean and Build.
回答by Hardik Darji
in my case issue with provisioning profile shows expired date is not due, but when I checked in apple developer portal, and go to -iOS Provisioning Profiles, it shows me Expires: Dec 04, 2015 Status: Invalid
在我的情况下,配置文件显示过期日期未到期,但是当我在苹果开发者门户中查看并转到 -iOS 配置文件时,它显示我 过期:2015 年 12 月 4 日状态:无效
I have created new development provisioning profilefor my app and downloaded from apple developer account. Then added in keychain Access and finally go to xCode project and selected new profile. And its solved.
我为我的应用创建了新的开发配置文件,并从苹果开发者帐户下载。然后在钥匙串访问中添加,最后转到 xCode 项目并选择新的配置文件。它解决了。
回答by user2983548
I had the same issue. I fixed it through the following method :
我遇到过同样的问题。我通过以下方法修复了它:
Go to developer account, double click on development or distribution certificate to add it to keychain (that depend on what kind of provision profile you need).
Xcode > Preferences > Accounts > View Details > And just refresh the Provisioning Profile (if you do not find your provision profile).
Clean and Build.
转到开发者帐户,双击开发或分发证书将其添加到钥匙串(这取决于您需要什么样的配置文件)。
Xcode > Preferences > Accounts > View Details > 然后刷新 Provisioning Profile(如果你没有找到你的 Provisioning Profile)。
清洁和建造。