Xcode warning: There is no codesign_wrapper executable

Question: I am getting Xcode error message of “warning: There is no codesign_wrapper executable. Please reinstall the Xcode developer tools” while trying to build a release version of my iPhone application. I can’t upload it to iTunes AppStore. SDK: Xcode 4.2 on iMac OSX 10.6.7. Answer: You are likely using a beta version. Beta versions are not designed to build release code and support uploads to AppStore: 1. Uninstall or unselect beta version of Xcode SDK. See notes. Restart your Mac. 2. Install Xcode 4.0.2 or later full version, 3. Clean and rebuild your application. 4. Use Organizer to upload it to AppStore. Notes: – To uninstall Xcode developer tools on the boot volume along with the Xcode directory, use Terminal window and sudo command. Be sure to know what you are doing. There is no Are you sure…? question:
Navigate to Xcode folder (probably to /Developer folder), and type:
 $ sudo Library/uninstall-devtools --mode=all

When Xcode is in the Developer folder, copy-paste this line:
sudo /Developer/Library/uninstall-devtools --mode=all
– To remove the underlying developer content on the boot volume, but leave the Xcode directory and supporting files untouched, follow these steps:
Navigate to Xcode folder and type:
$ sudo Library/uninstall-devtools --mode=systemsupport

When Xcode is in the Developer folder, copy-paste this line:
sudo /Developer/Library/uninstall-devtools --mode=systemsupport