我正面临代码问题。
我正在使用Xcode 6.0.1和Os x server 3.2.1
E79CDDB501B68E74DDF03EA4E75246A7FDF010D0: no identity found
Command /usr/bin/codesign failed with exit code 1
我尝试了Stack Overflow中的所有可能答案,但我无法解决此问题。任何人都可以帮我解决这个问题。 ??
错误日志如下
/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也是。我尝试使用Stack Overflow中提供的答案导入它 seanwolter
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:找不到指定的钥匙串。
我不知道如何解决这个问题。请帮帮我...... !!!
答案 0 :(得分:63)
我有同样的问题。我通过以下方法修复它:
Xcode > Preferences > Accounts > View Details > And just refresh the Provisioning Profile
然后Restart the Xcode and Clean and Build.
答案 1 :(得分:1)
在我的情况下,配置文件显示过期日期未到期,但当我在Apple开发人员门户网站上签到并转到-iOS配置文件时,它显示了我 的过期: 2015年12月4日 状态: 无效强>
我为我的应用创建了新的开发配置文件,并从Apple开发者帐户下载。然后在keychain Access中添加,最后转到xCode项目并选择新的配置文件。它解决了。
答案 2 :(得分:0)
我有同样的问题。我通过以下方法修复它:
转到开发者帐户,双击开发或分发证书,将其添加到钥匙串(取决于您需要的配置文件类型)。
Xcode>偏好>帐户>查看详细信息>只需刷新配置文件(如果找不到您的配置文件)。
清洁和建造。