iOS Build Environment Help Center

Firebase Crashlytics

append delete Leandro

I was reading the docs to implement Firebase Crashlytics in my project and it says this

Step 4: Build your project and upload symbols

iOS+ (Apple platform)
From the Build Settings dialog, export your project to an Xcode workspace.
Build your app.
For Apple platforms, the Firebase Unity Editor plugin automatically configures your Xcode project to generate and upload a Crashlytics-compatible symbol file to Firebase servers for each build.

https://firebase.google.com/docs/crashlytics/get-started?hl=en&authuser=0&_gl=1*1mno2w4*_ga*OTE2NjIzNTg2LjE3MDAwNDE0MDk.*_ga_CW55HF8NVT*MTcwMTA5Njc1Ny40LjEuMTcwMTA5Njc4My4zNC4wLjA.&platform=unity#build-project-upload-symbols

How would this be resolved in the iOS builder considering that Xcode is not in our equation.

Reply RSS

Replies

append delete #1. Pierre-Marie Baty

Hello

"automatically configures your Xcode project" - that's not very developer-friendly. I suppose they have some sort of "DIY instructions" elsewhere to explain what needs to be done ?

:: @Pierre-Marie Baty added on 27 Nov ’23 · 17:20

*edit* found it, it's just a matter of switching the "platform" tab in their documentation from "Unity" to "iOS". Because that's pretty much the point here.

https://firebase.google.com/docs/crashlytics/get-started?platform=ios

So, what you need to do is to build the DEBUG configuration of the Xcode project. This will build the code without optimizations and create a .dSYM folder in the .ipa archive containing the same debug info that Xcode would generate.

After that, in step 4.c, they require to add a custom build step where a script they provide called "run" is run. This is most probably a POSIX/macOS shell script that won't run on Windows. What you need to do then is to read it, understand what it does, and convert it to a format that's executable on Windows, either by reimplementing its functionality in the Microsoft scripting language (Batch or PowerShell), or by creating your own implementation in whatever language of your choice, so that it can be run in the pre-packaging phase by the builder as a pre-packaging script.

Let me know if you need more help on this step.

Reply

(Leave this as-is, it’s a trap!)

There is no need to “register”, just enter the same name + password of your choice every time.

Pro tip: Use markup to add links, quotes and more.

Moderators: Pierre-Marie Baty