loftafi/zig-sdl3-ios
Example zig project demonstrating how to build and run a simple SDL3 project for iOS
dbb1b96360658f5845ff6fac380c4f13d7276dc2
e825cdf18bb3aa50ac0e208589963a3a22cddb42
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.