Skip to content

August 10, 2015

Fix SDL2 Crash When Compiling using Xcode on Mac OSX

by noise

If you want your SDL2 app to compile without crashing you must sign it. In order to do that let’s go to SDL2.framework directory:

cd /Applications/ MacOSX.platform/

To check if SDL2 is code signed run:

codesign -vvvv SDL2

To signe SDL2 run:

codesign -f -s - SDL2

Note: If you are using an older version of OSX then the path where SDL2.framework is located might be different. For example on OSX 10.7 we can have an Xcode that has SDK for OSX 10.8 located in: /Applications/
Developer /SDKs/MacOSX10.8.sdk/System/Library/Frameworks/SDL2.framework/

Read more from Cocoa, SDL2

Leave a Reply


Note: HTML is allowed. Your email address will never be published.

Subscribe to comments