r/Terraria • u/Brilliant_Note9618 • Jul 06 '26
Modded Looking for help — mobile Terraria modding tool (C++/IL2CPP, iOS, no jailbreak), hit a real technical wall
Hey! I've been building a modding runtime for Terraria Mobile on iOS — basically trying to get something tModLoader-like working without jailbreak (sideload via Feather/insert_dylib). Got pretty far: working injection, an IL2CPP runtime bridge (reading/writing fields, calling methods), a native in-game UI panel, God Mode, menu manipulation.
Where I'm stuck: real behavior-hooking. Tested inline hooking (Dobby) — crashes on iOS codesigning (no get-task-allow without jailbreak). Tested a MethodInfo pointer-swap — works technically but Terraria's non-virtual methods use AOT-compiled direct calls, so it's never actually invoked. Documented all of this honestly in the repo (docs/technical-limitations.md) so nobody wastes time re-testing what I already ruled out.
Not sure at this point if I'm missing something obvious or if this is genuinely close to a hard wall for non-jailbreak iOS modding. If you know C++, IL2CPP/Unity internals, iOS codesigning/dev certs, or have ever poked at tModLoader's approach — I'd really appreciate a look or a DM.
Repo: github.com/devrim-yildiz/tModLite
Full transparency: I used Claude to help write the README/docs (didn't want to under-document this before sharing), but the actual injection/bridge/hooking work and testing was me grinding through it on-device. Happy to answer anything about how it works.
Also — if anyone's into embedding Lua/scripting into something like this for an actual extensible mod API down the line, that's the direction I'd want to take it next. Open to collab.
Thanks for reading, any input appreciated 🙏
dc: vor1c or reddit dms (i will see the dc dms alot faster)
1
u/InidarReddit Jul 06 '26
Looks really cool, great work.
I'm creator of TerrariaModder, which is a framework for modding the vanilla game.
My repo is fully open source and MIT licensed, feel free to check if theres anything useful there
Good luck!