loftafi/zig-sdl3-ios
Example zig project demonstrating how to build and run a simple SDL3 project for iOS
A sample app that draws a box and some text lives
in src/app.zig
, and a template iOS xcode template
project is in ios/cc.xcodeproject
.
git clone
this repository, and in the top level run:
zig build
This does several things.
zig-out/bin/cc
After doing zig build
the zig code is copied into the xcode project.
Open the ios/cc.xcodeproject
, configure for running on your phone
then press the run button. You will need basic background knowledge
of how to build and run an xcode iOS project.