Setting up iOS support for the GDK
Get the dependencies for developing iOS games
Note: iOS development is only supported on macOS.
- Install iOS build support for Unity
- If you have not used the GDK for Unity before, please follow the steps in Setup & installation and additionally select iOS build support when installing Unity.
- If you have Unity already installed and followed the Setup & installation, open your Unity Hub and add the iOS build support to your existing installation.
- Install XCode.
- (Optional) Install the Unity Remote app on your physical device - this is Unity’s solution for faster development iteration times.
Prepare your physical device
If you want to launch your game on a physical device, you need to:
- Connect your iOS device to your computer using a USB cable. Accept the Trust This Computer alert if it appears.
- If you want to connect your device to a local deployment, ensure your computer and your mobile device are connected to the same network.
Set up your Unity Editor
Most of your interactions with the GDK happen inside your Unity Editor. To get started:
- Open your project inside your Unity Editor.
- In your Unity Editor, select Edit > Project Settings > Player. This opens the Project Settings window.
- In the Inspector window, select Settings for iOS (the iPhone icon) > Other Settings.
- In the Configuration section of the Inspector window, locate Target SDK and select:
- Device SDK, if you want to run your application on a physical device.
- Simulator SDK, if you want to run your application on an iOS Simulator.
- (Optional, if you want to use Unity Remote) Go to Edit > Project Settings > Editor to bring up the Editor Settings window and navigate to the Unity Remote section. Set the Device setting to Any iOS Device.