How to use SDL2 on MacOS with Xcode

I am trying to make sense of the sdl2 macos readme in the source code, but I could not help but notice the sdl2 release includes a dmg file. There’s no mention of it in the readme. Is there any simpler way of using it so I can setup my game Xcode project to use sdl2? Thanks

The readme was very out of date, last time I checked.

These are the steps I use
Addendum: you may also need to add $(PROJECT_DIR) to Framework Search Path in the Build Settings, depending on what version of Xcode you have.

Thanks, that’s a much clearer step by step. Will update this when I get it working!

@sjr , hey, just to report that all worked out! Thank you for your detailed instructions!

1 Like