-
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/techyworm10/firebase-unity-sdk-arm64)
-
In Unity, open the MoveToCode Project and navigate to
File->Build Settings...
-
In the
Build Settings Menu
, select your desired scene from the Scenes inBuild
section. If your scene does not appear in the suggestions, you can open it manually and then click theadd open scenes
button -
Select
iOS
in thePlatform Menu
and then click onBuild
-
Once the build is completed, your
Finder
should open -
Inside finder, double click
Unity-iPhone.xcworkspace
-
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
-
Navigate to the
Signing and Capabilities
menu and selectUnity-IPhone
as your target -
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 yourSigning Certificate
for you -
Next, navigate to the
UnityFramework target
. InUnityFramework
, under theSigning and Capabilities
section, update the team for All. -
This is now fixed under
karen-develop
and will auto add it when building [NO LONGER NEEDED] You will also need to addGameKit.framework
underUnityFramework
. 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