Xcode 4.2 - 证书确定,但“没有codesign_wrapper可执行文件。请重新安装Xcode开发人员工具。”出现

时间:2011-06-10 15:13:14

标签: iphone ios xcode code-signing

我在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)

相同的配置适用于以前的XCode,我只是仔细检查 - 代码签名证书是有效的。建议?

2 个答案:

答案 0 :(得分:18)

只需更改您选择的Xcode版本:

$ xcode-select -print-path 
/Xcode42
$ sudo xcode-select -switch /Xcode402
Password:
$ xcode-select -print-path           
/Xcode402

答案 1 :(得分:2)

我找到的唯一解决方案是从系统中删除XCode 4.2beta,并重新安装以前的版本 - 它有所帮助。 Beta版本并不意味着构建发布版本。