Did you check the target-level (not the project-level) settings for Debug and Release settings? The target-level settings override the project-level settings. The codesign utility is instrumental in debugging code signing issues. You'll probably find 'codesign -vvvv' useful.