Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 4.2 - certificates ok, but "There is no codesign_wrapper executable. Please reinstall the Xcode developer tools." appears

I select "Build to Archive" in XCode 4.2, and the following error appears:

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?

like image 694
kolinko Avatar asked Jun 10 '11 15:06

kolinko


2 Answers

Just change your selected Xcode version like this:

$ xcode-select -print-path 
/Xcode42
$ sudo xcode-select -switch /Xcode402
Password:
$ xcode-select -print-path           
/Xcode402
like image 150
kodz Avatar answered Nov 08 '22 21:11

kodz


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.

like image 22
kolinko Avatar answered Nov 08 '22 21:11

kolinko