debug won't codesign, other configs will

I am unable to get a fully codesigned debug version of my app, whilst other configurations such as the profiling build will codesign. This is obvious as it is a sandboxed app and the debug version cannot generate a bookmark for a file (Cocoa error 256) whilst the profiling version can. Other entitlements, networking and microphone, work fine on both versions. When I use codesign -v it reports that the app isn't signed at all. I use automatically managed signing and this has been working until yesterday, when I manually installed a new developer install certificate in the keychain. The actual warning is "appname isn't code signed but requires entitlements. It is not possible to add entitlements to a binary without signing it." This is the entitlements file:


<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">

<plist version="1.0">

<dict>

<key>com.apple.security.app-sandbox</key>

<true/>

<key>com.apple.security.assets.music.read-write</key>

<true/>

<key>com.apple.security.device.microphone</key>

<true/>

<key>com.apple.security.files.user-selected.read-write</key>

<true/>

<key>com.apple.security.network.client</key>

<true/>

<key>com.apple.security.network.server</key>

<true/>

</dict>

</plist>

This is almost too embarassing, but I'm going to post it anyway. In the codesign configuration screen I accidently clicked "Release" instead of "all". I hang my head in shame

debug won't codesign, other configs will
 
 
Q