[launchd-dev] Release vs. Debug builds and launchd codesigning

Steve Gehrman sgehrman at mac.com
Fri Aug 28 15:53:41 PDT 2009


On Aug 28, 2009, at 2:42 PM, Dave Keck wrote:

> 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.

Yeah, I know about the target vs project settings stuff and all checks  
out.

Here's some codesign ouput:

Anyone see anything bad?  Are there other codesign commands I should  
try?

Also, I did a test where I ran the debug build first and it worked,  
then without unloading the helper tool, I ran the Release build and it  
worked.  So if it would seem that the tool is the problem.

I do copy the tool to my helper tool to myapp.app/Contents/Library/ 
LaunchServices/ folder in the apps target if that makes any  
difference.  Does a release build do some kind of strip on copy that I  
need to worry about?

Release build:

Steves-Intel:Release sgehrman$ codesign -d -vvvv  /Volumes/Development/ 
builds/Release/Path\ Finder.app/Contents/MacOS/Path\ Finder
Executable=/Volumes/Development/builds/Release/Path Finder.app/ 
Contents/MacOS/Path Finder
Identifier=com.cocoatech.PathFinder
Format=bundle with Mach-O universal (i386 ppc7400)
CodeDirectory v=20100 size=13333 flags=0x0(none) hashes=660+3  
location=embedded
CDHash=6e41bd4b67a0377e30b29f83e85eac6406e6d0c0
Signature size=758
Authority=Joe Developer
Signed Time=Aug 28, 2009 Aug 28, 3:28:44 PM
Info.plist entries=23
Sealed Resources rules=4 files=162
Internal requirements count=1 size=104

Steves-Intel:Release sgehrman$ codesign -d -vvvv /Volumes/Development/ 
builds/Release/com.cocoatech.pathfinder.SMHelper
Executable=/Volumes/Development/builds/Release/ 
com.cocoatech.pathfinder.SMHelper
Identifier=com.cocoatech.pathfinder.SMHelper
Format=Mach-O universal (i386 ppc7400)
CodeDirectory v=20100 size=242 flags=0x0(none) hashes=6+2  
location=embedded
CDHash=155aa399b8d69d594a3c73baaf6daa43c93ecf3f
Signature size=758
Authority=Joe Developer
Signed Time=Aug 28, 2009 Aug 28, 3:26:50 PM
Info.plist entries=5
Sealed Resources=none
Internal requirements count=1 size=104

Debug build

Steves-Intel:cocoatech sgehrman$ codesign -d -vvvv  /Volumes/ 
Development/builds/Debug/Path\ Finder.app/Contents/MacOS/Path\ Finder
Executable=/Volumes/Development/builds/Debug/Path Finder.app/Contents/ 
MacOS/Path Finder
Identifier=com.cocoatech.PathFinder
Format=bundle with Mach-O thin (i386)
CodeDirectory v=20100 size=23453 flags=0x0(none) hashes=1166+3  
location=embedded
CDHash=3e73eae7bf82bb257132cb5e36a311d33f29fe5a
Signature size=758
Authority=Joe Developer
Signed Time=Aug 28, 2009 Aug 28, 3:46:28 PM
Info.plist entries=23
Sealed Resources rules=4 files=162
Internal requirements count=1 size=104

Steves-Intel:cocoatech sgehrman$ codesign -d -vvvv /Volumes/ 
Development/builds/Debug/com.cocoatech.pathfinder.SMHelper
Executable=/Volumes/Development/builds/Debug/ 
com.cocoatech.pathfinder.SMHelper
Identifier=com.cocoatech.pathfinder.SMHelper
Format=Mach-O thin (i386)
CodeDirectory v=20100 size=262 flags=0x0(none) hashes=7+2  
location=embedded
CDHash=a6b7524a01b0cddaf4965aa551687f71c313ee35
Signature size=758
Authority=Joe Developer
Signed Time=Aug 28, 2009 Aug 28, 3:45:57 PM
Info.plist entries=5
Sealed Resources=none
Internal requirements count=1 size=104


More information about the launchd-dev mailing list