Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 1
iOS Build
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. 0. looks like there is a firebase/Python2 issue with M1 -> https://github.com/firebase/firebase-unity-sdk/issues/154#issuecomment-1068879556
In Unity, open the MoveToCode Project and navigate to
File->Build Settings...In the
Build Settings Menu, select your desired scene from the Scenes inBuildsection. If your scene does not appear in the suggestions, you can open it manually and then click theadd open scenesbuttonSelect
iOSin thePlatform Menuand then click onBuildOnce the build is completed, your
Findershould openInside finder, double click
Unity-iPhone.xcworkspaceOnce you have your project on XCode, you will need to adjust a few quick settings in order to build it on an iOS device
Navigate to the
Signing and Capabilitiesmenu and selectUnity-IPhoneas your targetUpdate 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 signingand select your team, this will also update yourSigning Certificatefor you
Next, navigate to the
UnityFramework target. InUnityFramework, under theSigning and Capabilitiessection, update the team for All.
This is now fixed under
karen-developand will auto add it when building [NO LONGER NEEDED] You will also need to addGameKit.frameworkunderUnityFramework. Image below is after a failed compilation and then correctly addingGameKit.framework
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
After step "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