If you just want to write C and are ok linking to stuff that is in other languages, then I used SDL2 for my game which I wrote in C and is on the app store. It was a very pleasant experience, and if I were doing an iOS thing again, I would likely do something similar. I think I had one objective C file in there for calling a library function I needed, but otherwise I just wrote C code.
Is it possible to write plain C iOS app in 2025?
51–60 of 74 posts
Re: Is it possible to write plain C iOS app in 2025?
#52Yes. And many are when you require a common code-base for iOS, Android, and other devices. (But C++ is used more commonly) Video games are the ones that do this by default. It would be close to impossible to have feature parity by coding a game for iOS in Swift, for Android in Java, for Steam in C++, etc. Unreal or Unity will have C/C++ code-bases with very light integration layers to do system calls.(The payment sys…
Re: Is it possible to write plain C iOS app in 2025?
#53https://github.com/ColleagueRiley/RGFW.git
It was discussed recently around here: https://news.ycombinator.com/item?id=42217535
The macos backend is a neat hack, written in pure C.
Re: Is it possible to write plain C iOS app in 2025?
#54If you just want to write C and are ok linking to stuff that is in other languages, then I used SDL2 for my game which I wrote in C and is on the app store. It was a very pleasant experience, and if I were doing an iOS thing again, I would likely do something similar. I think I had one objective C file in there for calling a library function I needed, but otherwise I just wrote C code.
Re: Is it possible to write plain C iOS app in 2025?
#55Re: Is it possible to write plain C iOS app in 2025?
#56If you just want to write C and are ok linking to stuff that is in other languages, then I used SDL2 for my game which I wrote in C and is on the app store. It was a very pleasant experience, and if I were doing an iOS thing again, I would likely do something similar. I think I had one objective C file in there for calling a library function I needed, but otherwise I just wrote C code.
Just SDL2? Do you have access to OpenGL or some sound library as well? and if so what library are you using? How do you handle input and networking?
Re: Is it possible to write plain C iOS app in 2025?
#57You can create a frontend of whatever language you want for llvm so it’d translate it to llvm-ir.
You just need a small wrapper in objective c to make it work.
Re: Is it possible to write plain C iOS app in 2025?
#58For some reason it required a bit of objective C for it to work with opengl.
I sold my macbook about 2 years later, around 2015.
Re: Is it possible to write plain C iOS app in 2025?
#59Yes. And many are when you require a common code-base for iOS, Android, and other devices. (But C++ is used more commonly) Video games are the ones that do this by default. It would be close to impossible to have feature parity by coding a game for iOS in Swift, for Android in Java, for Steam in C++, etc. Unreal or Unity will have C/C++ code-bases with very light integration layers to do system calls.(The payment sys…
Before settling on Electron, I recommend exploring Tauri. It's more lightweight, it's better with sandboxing and it allows dropping down to Rust when performance is critical.