

Please refer to this Xcode compatibility lookup page to see the upcoming changes to Unity and Xcode versions supported on Mac hardware.įor additional questions, please visit the Cloud Build Forums. However the API might change, I wish the basic strategy on this article may help.In order to better support customer reliability for Apple Xcode and Unity versions running in Unity Cloud Build, older and unsupported versions of Unity and XCode will be We used npm to install firebase cli because it’s a suitable way on CI and fortunately UCB supports npm by default.įirebase App Distribution is still beta in Oct. Unity Cloud Build (UCB) provides easily configurable CI for Unity iOS/Android projects.Īnd with the “Post-Build Script” hook, we can deploy the app to Firebase App Distribution. ci/post_build.sh on git, and push the commit on the branch to build :) Conclusion ci/post_build.sh in your UCB project.įYI, don’t forget to commit the files package.json, package-lock.json and. ipa/.apk file" exit 1Īnd fill up “Post-Build Script” field on “Advanced Options” with. regex '.*\.(ipa|apk)' -print -quit ) " if thenĮcho "Could not find. #!/bin/sh set -x export FIREBASE_BUILD = " $(find -E. ci/post_build.sh (or somewhere you want) and add some scripts on it as following. The last piece that ties the all together is a shell script file.Ĭreate a file at. If you want more info about the command and variables, see the document. You can get and set them on Firebase console. Though, that should not matter much as long as you keep the UCB project private.įIREBASE_APP is the id of the Firebase app, and FIREBASE_GROUPS is the names of tester groups separated by ",". UCB doesn’t have a feature to store “Secret” variables which is common in some other CI services. Set it as an env variable in “Environment Variables” section of UCB. We’ll set it by script later.įIREBASE_TOKEN is the authentication token you’ve gotten on the former step. package.json (partial) įIREBASE_BUILD is the path to the built ipa/apk.

I’ll explain about "scripts" property later, so let’s get into the detail then.īTW, “burger-kingdom” is a project I’m currently working on :) The final package.json file should be like following. In order to run it on CI, I assume using npm is the easiest and reliable way because we can specify the version of the cli. To deploy you app to Firebase App Distribution, you have to use firebase cli. There is detailed guide on Firebase document & console. set up scripts deploy ipa/apk to Firebase App Distributionįirst of all, you have to create Firebase project and install Firebase SDK into your Unity project.authenticate with Firebase by a token obtained by firebase login:ci.In this article, we configure Unity Cloud Build to The script can run npm to install firebase-cli, and you can deploy your ipa/apk to Firebase using the cli. Unity Cloud Build (UCB) has a feature “Post-Build Script” where you can execute shell script file.
