Aller au contenu principal

How to build and run a Unity App on iOS without an apple developer licence?

How to download a Unity project on iOS without an apple developer licence?

info

Requirements: MacOS with Xcode (latest version) and Unity installed

  1. In Unity, in the section Installs, select the settings associated to the Unity version you want to use. Then, click on Add modules and install iOS Build Support.

  2. Launch your project using this updated version. Open Build Profiles (also called Build Settings). Once settings opened, In iOS, check Development build. Click on 'switch platform' if needed.

remarque

Build can only be accessed for a few days. It is only for testing purposes.

  1. Still in Build Profiles, go to 'Player Settings'. There, you can modify your organization name, your application name and so on. I recommend you to modify the Bundle Identifier.

  2. Continue with the subsection Other Settings, the field Target minimum iOS Version should at least be iOS 11.0.

astuce

In the same subsection, you can select the target device. It can be an iPhone, an iPad, or both.

  1. Once you are done, go back to Build profiles and press Build & Run. If you get this error : Go to Xcode. Open Settings > Locations, check Command Line Tools. It should already have a selected option. If it doesn't, set it. It will ask you to input your password. Once done, go back to unity and press Build & Run. If the build fails again, restart Unity and restart Xcode. If it crashes a third time, restart your Mac. If the Build is successful you might get a pop-up asking if Unity Hub can use Xcode. Allow it.

  2. In Xcode, you might get an error (symbolized by the red cross on the top right of the window). In Signing & Capabilities, check Automatically manage signing. It will introduce a new field called Team. In Team, identify yourself or click on your account.

  3. At this stage, plug your iPhone into your Mac and enable Developer mode on your iPhone. To enable the developer mode on your iPhone, go to Settings. In privacy & Security, you will find the section Developer Mode at the end. You will need to restart your iPhone.

  4. Once your iPhone turned into developer mode, go back to Unity and select your iPhone in the top middle bar and run. If you get an Untrusted Developer pop up on your iPhone, go to Settings > General > VPN & Device Management. There, you have to enable the app by clicking on Trust. Then click on Verify App.

attention

This action may need a network connection.

  1. Finally, launch your app
attention

Do not forget to disabe the developer mode once you have finished.