Resolving the signing issue: cannot find code object on disk

When I upgraded to Mavericks and Xcode 5.x, my code signing scripts began to fail with the following error:

cannot find code object on disk

I was able to get around this issue by adding the following to my shell (Bash) script:

CODESIGN_ALLOCATE="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate"