Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use Unity Cloud Build CI/CD platform Firebase symbol upload for Android #1326

Closed
max-critcrew opened this issue Apr 5, 2023 · 5 comments

Comments

@max-critcrew
Copy link

[READ] For Firebase Unity SDK issues, please report to Firebase Unity open-source

Once you've read this section and determined that your issue is appropriate for this repository, please delete this section.

[REQUIRED] Please fill in the following fields:

  • Unity editor version: 2021.3.16f
  • Firebase Unity SDK version: 10.7.0
  • Source you installed the SDK: .unitypackage
  • Problematic Firebase Component: Crashlytics
  • Other Firebase Components in use: Analytics
  • Additional SDKs you are using: None
  • Platform you are using the Unity editor on: Mac
  • Platform you are targeting: iOS, Android
  • Scripting Runtime: IL2CPP

[REQUIRED] Please describe the issue here:

Is there any way to use the Unity Cloud Build CI/CD platform and automatically upload Android symbols?

We want to have automatic builds via CI/CD and make sure that Crashlytics/Firebase has all relevant symbols.

Steps to reproduce:

  • Build the game via Unity CI/CD
  • Have a crash on Android
  • Do not get symbolized stack traces because the symbols are missing

Relevant Code:

  • None
@max-critcrew max-critcrew added the new New issue. label Apr 5, 2023
@AlmostMatt
Copy link
Contributor

AlmostMatt commented Apr 7, 2023

There is some information on uploading symbols for crashlytics on Android here:
https://firebase.google.com/docs/crashlytics/get-started?platform=unity#set-up-symbol-uploading

The summary is that you need to get the firebase CLI, update your build settings, and run a command to upload android symbols after you build your Unity project.

Let us know if this does not work or if you need additional information

@AlmostMatt AlmostMatt added api: crashlytics type: question needs-info Need information for the developer and removed new New issue. labels Apr 7, 2023
@max-critcrew
Copy link
Author

@AlmostMatt

I understand that and used it, locally on my computer. The questions: How to automate it when using the Unity CI/CD solution, Unity cloud build: https://unity.com/solutions/ci-cd

Have you ever tried that / made a test project for this?
Without being able to use CI/CD Firebase Crashlytics, it's pretty hard to fit in the workflow :)

@google-oss-bot google-oss-bot added needs-attention Need Googler's attention and removed needs-info Need information for the developer labels Apr 7, 2023
@AlmostMatt
Copy link
Contributor

AlmostMatt commented Apr 11, 2023

Oh, I understand the issue now.
We do not have experience working with Unity's CI/CD, so I do not have a tested solution.

I think the desired solution would be a way to run custom scripts as part of the automated build process and have the custom script interact with the Firebase CLI. I see some mention of Script Hooks in Unity documentation that might be able to accomplish this: https://docs.unity.com/devops/en/manual/build-target-configurations#Script_hooks, and https://docs.unity.cn/2020.3/Documentation/Manual/UnityCloudBuildScriptHooks.html

Searching online, this blog post appears to do something with firebase cli as a post-script in Unity CI automated builds, it's solving a slightly different problem but might be a good example.
https://blog.kakeragames.com/2019/11/03/firebase-app-distribution-with-unity-cloud-build.html

@AlmostMatt AlmostMatt added needs-info Need information for the developer and removed needs-attention Need Googler's attention labels Apr 11, 2023
@google-oss-bot google-oss-bot added the stale Don't have recent activity label Apr 18, 2023
@google-oss-bot
Copy link

Hey @max-critcrew. We need more information to resolve this issue but there hasn't been an update in 5 weekdays. I'm marking the issue as stale and if there are no new updates in the next 5 days I will close it automatically.

If you have more information that will help us get to the bottom of this, just add a comment!

@max-critcrew
Copy link
Author

@AlmostMatt Thank you so much, we will try this and come back to you if we need anything :)

In case you (now or later) decide to make any samples with Unity CI/CD that'd be amazing and definitely help everyone using Crashlytics to integrate it more seamlessly :)

@google-oss-bot google-oss-bot added needs-attention Need Googler's attention and removed needs-info Need information for the developer stale Don't have recent activity labels Apr 18, 2023
@AlmostMatt AlmostMatt removed the needs-attention Need Googler's attention label May 17, 2023
@firebase firebase locked and limited conversation to collaborators Jun 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants