Skip to content

iOS Build

Thomas Groechel edited this page Nov 16, 2021 · 12 revisions

iOS

This is a guide on how to build MoveToCode as a mobile app on your iOS device. You will need to have installed Unity and XCode on your current device in order to follow along.

  1. In Unity, open the MoveToCode Project and navigate to File->Build Settings...

  2. In the Build Settings Menu, select your desired scene from the Scenes in Build section. If your scene does not appear in the suggestions, you can open it manually and then click the add open scenes button

  3. Select iOS in the Platform Menu and then click on Build

  4. Open XCode and either select Open a project or file in the starting menu or navigate to File->Open...

  5. Follow this to install pod depending on your mac: https://youtu.be/zdv9qE4j-VU (arch -x86_64 pod install if on M1 Mac and already followed this once). Navigate to your build file and open it with XCode

  6. Once you have your project on XCode, you will need to adjust a few quick settings in order to build it on an iOS device

  7. Navigate to the Signing and Capabilities menu and select Unity-IPhone as your target

  8. Update the team and bundle identifier for All. You can do this by adding characters to the end of the existing Bundle Identifier. 9 Enable automatically manage signing and select your team, this will also update your Signing Certificate for you

  9. Next, navigate to the UnityFramework target. In UnityFramework, under the Signing and Capabilities section, update the team for All.

  10. This is now fixed under karen-develop and will auto add it when building [NO LONGER NEEDED] You will also need to add GameKit.framework under UnityFramework. Image below is after a failed compilation and then correctly adding GameKit.framework

  11. Now you are ready to build your program on an iOS device! Connect an iOS device to your computer, select the device you want to build on, and run your code by hitting the play button!

Note: If the project builds on your iPhone, but your device is unable to open the application, approve the app by going to settings → general → device management

Clone this wiki locally