Xcode 4.2 - 证书正常,但“没有 codesign_wrapper 可执行文件。请重新安装 Xcode 开发人员工具。” 出现
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/6308349/
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
Xcode 4.2 - certificates ok, but "There is no codesign_wrapper executable. Please reinstall the Xcode developer tools." appears
提问by kolinko
I select "Build to Archive" in XCode 4.2, and the following error appears:
我在XCode 4.2中选择“Build to Archive”,出现如下错误:
Validate "/Users/merlin/Motivapps/DerivedData/GoalWorkshop2-gzesusxljzqjkmbznfkkmylstlca/ArchiveIntermediates/GoalWorkshop2/InstallationBuildProductsLocation/Applications/Goal Wshop.app"
cd /Users/merlin/Motivapps/GoalWorkshop2
setenv PATH "/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
setenv PRODUCT_TYPE com.apple.product-type.application
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/Validation "/Users/merlin/Motivapps/DerivedData/GoalWorkshop2-gzesusxljzqjkmbznfkkmylstlca/ArchiveIntermediates/GoalWorkshop2/InstallationBuildProductsLocation/Applications/Goal Wshop.app"
2011-06-10 17:10:48.879 Validation[15683:607] *** Warning: Defaulting to the standard codesign tool
warning: There is no codesign_wrapper executable. Please reinstall the Xcode developer tools. (-19058)
Unable to validate your application. - (null)
The same configuration worked well with previous XCode, and I just double checked - code sign certificates are valid. Suggestions?
相同的配置适用于以前的 XCode,我只是仔细检查了 - 代码签名证书是有效的。建议?
回答by kodz
Just change your selected Xcode version like this:
只需像这样更改您选择的 Xcode 版本:
$ xcode-select -print-path /Xcode42 $ sudo xcode-select -switch /Xcode402 Password: $ xcode-select -print-path /Xcode402
回答by kolinko
The only solution I found was to remove XCode 4.2beta from the system, and reinstall the previous version - it helped. Beta versions are not meant to build release builds I guess.
我找到的唯一解决方案是从系统中删除 XCode 4.2beta,然后重新安装以前的版本 - 它有帮助。我猜 Beta 版本并不意味着构建发布版本。