xcode – E79CDDB501B68E74DDF03EA4E75246A7FDF010D0:找不到标识命令/usr/bin/codesign失败,退出代码1

我正在面临代码问题。

我使用的是Xcode 6.0.1和Os x server 3.2.1

E79CDDB501B68E74DDF03EA4E75246A7FDF010D0: no identity found
Command /usr/bin/codesign failed with exit code 1

我尝试了所有可能的解决方案是堆栈溢出,但我无法解决这个问题。任何人都可以帮我解决这个问题。 ??

错误日志如下

/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

我通过CL检查了Library / Developer / XcodeServer / Keychains / Portal.keychain。它只有

r--------  1 _xcsbuildd  _xcs     86032 Oct 15 10:21 Portal.keychain​

我猜Portal.keychain应该有codeign,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

但我收到这个错误

安全性:SecKeychainItemImport:无法找到指定的钥匙串。

我不知道如何解决这个问题。请帮我出来!

解决方法

我遇到过同样的问题。我通过以下方法修复:

Xcode > Preferences > Accounts > View Details > And just refresh the Provisioning Profile

然后重新启动Xcode并清理并构建。

相关文章

在有效期内的苹果开发者账号(类型为个人或者公司账号)。还...
Appuploader官网--IOS ipa上传发布工具,证书制作工具跨平台...
苹果在9月13号凌晨(北京时间)发布 iOS 16,该系统的设备可...
计算机图形学--OpenGL递归实现光线追踪
Xcode 14打出来的包在低版本系统运行时会崩溃,报错信息是Li...