09 - Protecting an iOS build (Pro)
Goal: You will learn how to notice a shared or edited copy of your iOS app, and how to turn those checks on.
This guide needs the Pro version. The genuine check in Step 3 also works in the Free version.
The problem
An iOS app is harder to copy than an Android app, but it happens. Someone takes your app, changes it, and signs it again with their own key. That is called re-signing. The changed copy is then installed outside the App Store, with a sideloading tool or from a website.
In the European Union an app can also come from an alternative marketplace, a store that is not Apple's App Store, or straight from a website.
That hurts your game. You lose sales, and honest players compete against people with a changed copy.
A changed copy differs from yours in two ways. It was not installed from the place you ship to. And it may no longer carry your app id.
The solution
Two detectors look for those differences:
- The Install Source Detector checks where the app was installed from.
- The Mobile Genuine Detector checks that the app is still yours.
Each step below is one check. You can use one or both.
Step 1: Check the iOS plugin
The install source check uses a native plugin, a small library made for iOS. It ships in Assets/GUPS/AntiCheat/Plugins/iOS/.
Select the plugin and look at its import settings in the Inspector.
Important
Keep Add to Embedded Binaries turned on.
Step 2: Make sure the detectors are there
The predefined Anti-Cheat-Monitor prefab already includes both detectors. If you use it, you have nothing to do here.
If you use your own monitor prefab, add the Install Source Detector and the Mobile Genuine Detector prefabs to it. Drag them onto the monitor in your prefab so they become children.

Image 1: The detector prefabs in Assets/GUPS/AntiCheat/Resources/Prefabs/Detectors.
The settings for the install source are in Edit > Project Settings > GuardingPearSoftware > AntiCheat, on the iOS tab.
Note
Verify development builds is off by default. While it is off, the install source check skips the Unity Editor and development builds. Turn it on while you test. A build started from Xcode then reports Xcode, and a Simulator run reports Simulator.
Step 3: Check that the app is still yours
The Mobile Genuine Detector asks Unity if the running app is genuine. A copy that was changed and published under another app id fails this check. The app id is the bundle identifier of your app, such as com.company.game.
You have nothing to set up. The detector checks once when the game starts.
You can also run the check yourself:
var detector = AntiCheatMonitor.Instance.GetDetector<MobileGenuineDetector>();
if (detector != null && !detector.ManualGenuineCheck())
{
// The app is not genuine.
}
This check does not catch every kind of edit. Use it together with the install source check.
Step 4: Allow only the places you ship to
This check reads which channel installed the app.
Go to iOS - App Store - Settings.
| Setting | What it does |
|---|---|
| Allow all installation sources | On: every source is allowed and nothing is reported. Off: only the sources below are allowed. Off by default |
| Allow following sources | The sources you trust. Tick the ones you ship on |
| Allow custom sources | An alternative marketplace that is not in the list. Enter the bundle identifier of the marketplace app, such as io.altstore.AltStore |
You can pick from these sources:
| Source | What it is |
|---|---|
| App Store | Apple's App Store |
| TestFlight | Apple's beta testing service |
| AltStore PAL, Aptoide, Epic Games Store | Alternative marketplaces in the European Union |
| Web | Installed from the developer's website (European Union) |
| Enterprise | Signed with an in-house company profile |
| Ad Hoc | Signed for a fixed list of test devices |
| Xcode | Signed with a development profile. Used by Xcode and by sideloading tools |
| Simulator | Running in the iOS Simulator |
| Other, Unknown | A channel that is none of the above |
For a normal release, allow App Store and TestFlight. The shipped settings also allow Xcode and Simulator, so the check stays quiet while you develop.
Important
Turn Xcode off before you ship. A re-signed copy installed with a sideloading tool is reported as Xcode.
Step 5: Know what each iOS version can tell apart
Older iOS versions cannot name every channel:
- iOS 13.0 and newer: App Store, TestFlight, Enterprise, Ad Hoc, and Xcode.
- iOS 17.4 and newer: Also alternative marketplaces.
- iOS 17.5 and newer: Also Web.
On an older version, an install from a marketplace or a website is reported as Unknown or AppStore.
The result
A changed copy fails one or both checks:
- It was installed from a place you did not allow.
- It no longer carries your app id.
Each find raises the threat score of the Anti-Cheat Monitor.
Note
The predefined monitor prefab has no punisher. A find raises the threat score, but nothing more happens to the player until you react yourself or add a punisher.
Settings reference: Install source detector, iOS install source monitor, and Mobile genuine detector.
Next steps
- Reacting to detected cheating shows how to run your own logic when a check fails.
- Punishing cheaters shows how to react automatically.
Next guide: 10 - Jailbroken iOS devices (Pro).
Back to the Guides overview.