I've seen similar SecKeychain crashes whenever I put runtime code signing 
checks into my code. I suspect SecKeychain is not garbage collection safe. I've 
taken to doing the following to eliminate the crashes:

        [[NSGarbageCollector defaultCollector] disable];

        err = SecCodeCopySelf(...);
        err = SecCodeCopyStaticCode(...);
        err = SecRequirementCreateWithString(...);
        err = SecStaticCodeCheckValidity(...);
        
        CFRelease(...);
        CFRelease(...);
        CFRelease(...);

        [[NSGarbageCollector defaultCollector] enable];

You might give that a try and see if it reduces the crash reports.

Dave

_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to