Reputation: 125
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.
Upvotes: 3
Views: 1732
Reputation: 2449
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).
Upvotes: 5
Reputation: 4622
This would upload symbols only for release
build configuration:
echo configuration is $CONFIGURATION
if [ $CONFIGURATION == Release ]; then
echo uploading symbols
# Replace this with the GOOGLE_APP_ID from your GoogleService-Info.plist file
GOOGLE_APP_ID=1:************
# Replace the /Path/To/ServiceAccount.json with the path to the key you just downloaded
"${PODS_ROOT}"/FirebaseCrash/upload-sym "${SRCROOT}/GoogleServiceAccount.json"
else
echo skipping symbols upload
fi
Upvotes: 3
Reputation: 761
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.
Upvotes: 3
Reputation: 317392
You don't have to run the script every time if you don't want to. Minimally, you should run once for each build that's going to the store. You can upload before the app is released to the store.
Upvotes: 1