We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 2058

Summary: The Framework is improperly signed.
Product: SDL Reporter: dak180 <dak180>
Component: buildAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: major    
Priority: P2 CC: binarycrusader, h, jasoncrowder, sdlbug
Version: 2.0.0   
Hardware: All   
OS: Mac OS X 10.6   

Description dak180 2013-08-23 17:39:15 UTC
codesign -vvv /Volumes/SDL2/SDL2.framework/Versions/A

Yields:

/Volumes/SDL2/SDL2.framework/Versions/A: code or signature modified
Comment 1 jasoncrowder 2014-07-03 17:33:16 UTC
This is causing crashes when spawning applications that use SDL2 under a debugger in Xcode 5. See http://stackoverflow.com/questions/22368202/xcode-5-crashes-when-running-an-app-with-sdl-2/24559954#24559954.
Comment 2 Sam Lantinga 2014-07-08 04:45:40 UTC
I'm not super familiar with the Mac build tools. Is there something I should be doing during the release build process to fix this?
Here's the current build script:
(cd $PRODUCT-$VERSION-source/Xcode/SDL && xcodebuild -configuration Release -target "Standard DMG" >>$LOG && cp build/$PRODUCT.dmg $TOP/$PRODUCT-$VERSION.dmg) || exit 1
Comment 3 Sam Lantinga 2014-07-08 05:03:10 UTC
I dug into this a little bit, and there's a special code signing step for the DMG build process, and I'm guessing this is failing.

I'll investigate further.

Thanks!
Comment 4 Sam Lantinga 2014-07-08 06:41:21 UTC
Bugs in the signing script, fixed:
https://hg.libsdl.org/SDL/rev/d095e572e0d5

Thanks for the info!
Comment 5 Sam Lantinga 2014-07-08 07:05:40 UTC
Ah, I found the second problem. In Xcode 5, the signing step is run before the binaries are stripped.

Investigating...
Comment 6 Sam Lantinga 2014-07-08 07:30:12 UTC
Okay, I worked around that by stripping the binaries before signing them. Then, when Xcode strips the binaries again, they don't change, and the signature is still valid.
https://hg.libsdl.org/SDL/rev/9e23a50a63f7