Skip to content

Instantly share code, notes, and snippets.

To test your apps, you might want to install Xcode and the iPhone simulator. This is entirely possible using a macOS virtual machine. Today, I will explain how to do this using dockur/macos. First, download and install it by following the instructions in their README file. After the installation is complete, macOS will show a warning in the top right corner to upgrade to the 'Tahoe' version. Click it and upgrade to the latest macOS. Then, open your terminal at the bottom right (I'm mentioning this for first-time Mac users xd). Once opened, enter these commands in order:

# Install Brew (see: https://brew.sh):
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

brew install xcodes

Based on my research, here is the general logic regarding this code and Unity Auth: The PLAYER_ID, UNITY_PROJECT_ID, and LEADERBOARD_ID always remain the same. However, there is a crucial point: the token value changes every time you restart the game. In fact, if you leave the game open for about 15 minutes, the token expires and changes again. There is actually a refresh_token system in place; essentially, it's a basic HTTP intercept process.

How to get this information: To capture this data, I personally use Fiddler Everywhere. It’s very simple, has a great ui, provides an understandable flow, and automatically handles HTTPS decryption for me (thanks Fiddler! xd). After entering the game and press the scene(button) which have the leaderboard section, if you analyze the traffic carefully, you will find all these values. This is generally how Unity Auth leaderboards work. Good luck! xd

One final note on bans: Developers using the Unity Auth system often link their tables with Steam IDs. This means if you ge