Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS Firebase Crash Reporting Uploading Symbol files

I integrated the firebase crash reporting into my app via cocoa pods . I created the run script ext.

So it is working now. But my problem is, every time I try to build and run the app even in the simulator it tries to upload Symbol files and it takes too much time to build and run the app.

I used hockey app before. And in hockey app i am using hockey app's mac application to upload the symbol file when i want to. For example when my development and developer tests finish then i am releasing add hoc build then i am sending symbol files to hockey app.

So my question is: What is the best use case flow of the firebase crash reporting? Can i upload symbol files before i release add hoc or App Store release? (Not every time)

Or is it possible to disable the "run script" for symbol file upload in the simulator builds.

like image 694
Arda Dtmr Avatar asked Dec 21 '25 01:12

Arda Dtmr


2 Answers

So I just keep the "Run script only when installing" checked on my symbol upload run script.

This ensures that it will only get run when archiving the app, and not during development (e.g. when releasing our app into the wild).

screenshot

like image 196
Harry Bloom Avatar answered Dec 23 '25 15:12

Harry Bloom


It seems you are looking for something like this:

if [ ${PLATFORM_NAME} != "iphonesimulator" ]; then
    echo "Uploading Firebase Crash Symbols..."

    # Replace this with the GOOGLE_APP_ID from your GoogleService-Info.plist file
    GOOGLE_APP_ID=1:my:app:id

    # Replace the /Path/To/ServiceAccount.json with the path to the key you just downloaded
    "${PODS_ROOT}"/FirebaseCrash/upload-sym "/Path/To/ServiceAccount.json"
fi

So, at the very least, it only runs and uploads symbols when you are building for anything that isn't the simulator.

like image 40
dbburgess Avatar answered Dec 23 '25 13:12

dbburgess



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!