Jump to content

Need help creating Theos-based mod for Unity game (jailed device)


3 posts in this topic

Recommended Posts

Posted

Hey everyone,
I’m trying to build a Unity game mod using Theos for a non-jailbroken (jailed) setup. Most of the guides and templates I’ve found are either outdated or targeted at jailbroken environments.

Here’s where I’m stuck:

What I’ve tried

  • Used SilentPwn template by @10738750-batch. The project builds and injects fine, but the actual patch doesn’t work.

  • Using offsets found via dnSpy:

    • If I use them directly, the game crashes.

    • If I add the UnityFramework base address, nothing happens.

    • If I use the SilentPwn as base, still no effect.

  • The H5GG method works. It generates a patched UnityFramework file on first run, which I can replace, re-sign, and sideload successfully.

  • I found the GitHub repo itsPow45/iOS-Jailed-Runtime-Offset-Patching-and-Hooking, which claims to be a Theos alternative to H5GG, but I can’t figure out how to integrate or use it.

What I want to know

  1. How should I correctly calculate runtime patch offsets for Unity games on jailed setups?

  2. How does Theos handle image slides and base address adjustments in this context?

  3. Is there any working example or minimal setup using itsPow45 (or similar) that performs runtime offset patching or creates a patched binary like H5GG does?

  4. Any known pitfalls when patching UnityFramework specifically for jailed devices?

Setup

  • Device: iPhone 16 Pro

  • iOS: 26.0.1

  • Game: Subway Surf

  • Binary of interest: UnityFramework

  • Toolchain: Theos (latest build)

If anyone can point me toward a current workflow or working example for jailed runtime patching with Theos, that’d be great.

  • Like 1
Posted
On 11/3/2025 at 9:04 PM, Bennie.re said:

I’m facing the same problem, let me know if you find anything 

On a jailed setup Theos won’t patch directly. For Unity you need native RVAs from Il2CppDumper/IDA, then inject or patch the IPA before installing. H5GG/itsPow45 show the right flow: generate a patched UnityFramework, re‑sign, and sideload.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines