Anyone familiar with crashlytics with cmp? I seem...
# compose-ios
c
Anyone familiar with crashlytics with cmp? I seem to get warnings that my dsym isn't uploaded, but I added the auto upload archive step to my project. I feel like I'm going insane since I can't get crash reports seemingly. I think everything is setup correctly since it says "Uploaded", and I even tried uploading manually but I still get the warning. the warning goes away if I uncheck the toggle in the first photo.
b
When I get back home from a Memorial Day trip I can get you the script. There's a script you put in your apple build scripts near the end
t
This is what I’m using as last action in build phases:
Copy code
# <https://firebase.google.com/docs/crashlytics/get-started?platform=ios#initialize-crashlytics>
"${BUILD_DIR%/Build/*}/SourcePackages/checkouts/firebase-ios-sdk/Crashlytics/run"

# Crashlytics/run only uploads symbols for this target, so manually upload all other symbols as well.
# See also: <https://github.com/firebase/firebase-ios-sdk/issues/5569#issuecomment-631191676>
PLIST_DESTINATION=${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/GoogleService-Info.plist
"${BUILD_DIR%/Build/*}/SourcePackages/checkouts/firebase-ios-sdk/Crashlytics/upload-symbols" -gsp "${PLIST_DESTINATION}" -p ios "${DWARF_DSYM_FOLDER_PATH}"
c
yeah the last photo i attached is the build phase I added.
b
Ours looks the same minus the quotes so it should be working since mine is working
Copy code
${SHARED_PRECOMPS_DIR%/Build/*}/SourcePackages/checkouts/firebase-ios-sdk/Crashlytics/run
t
If you have a dynamic kotlin library you may need the second command in my script too
c
i dont think i have any dynamic kotlin libraries? but maybe i do? not sure lol. I will see if maybe its a quotes issue. For the time being... i added sentry and was able to get sentry logs so thats good.
f
Try to uncheck “Based on dependency analysis” checkbox. It sometimes skips the upload dSYM build phase. It took me hours to figure out. Hopefully it helps.
c
oooooh! maybe thats the trick! thank you!
f
let us know it it worked.
c
Currently fighting with apple over my app update being rejected... so I'll be waiting to make this switch until that's resolved... but I have a good feeling about that check box 😃
f
setting
STRIP_INSTALLED_PRODUCT
to
NO
helped as well.
❤️ 1