How to Upload dSYM to Firebase using upload_symbols_to_crashlytics and SPM

⋅ 2 min read ⋅ Development Fastlane

Table of Contents

You probably get the following error:

Failed to find Fabric's upload_symbols binary at /Applications/Fabric.app/**/upload-symbols or ./Pods/**/upload-symbols. Please specify the location of the binary explicitly by using the binary_path option

When trying to upload dSYM to Firebase with these two conditions:

  1. You install Firebase SDK using Swift Package Manager (SPM) and try to
  2. Upload dSYM with the upload_symbols_to_crashlytics Fastlane action.

You can easily support sarunw.com by checking out this sponsor.

Sponsor sarunw.com and reach thousands of iOS developers.

How to fix the "Failed to find Fabric's upload_symbols binary" error

To fix the "Failed to find Fabric's upload_symbols binary" error, you need to do two things.

  1. Copy the upload-symbols script from the Crashlytics module to your project.
  2. Point upload_symbols_to_crashlytics to the copied script.

Copy upload-symbols script

You can find the upload-symbols script in the Firebase package's directory.

  1. In the project navigator pane (Left pane), scroll all the way down. You will see all of your Package Dependencies.
  2. Click Firebase > Crashlytics, and you should see the upload-symbols script.
upload-symbols script.
upload-symbols script.
  1. Right-click on upload-symbols and select "Show in Finder" to locate the file.
  2. Create a scripts folder at the root of your project.
  3. Copy upload-symbols script to newly create folder, ./scripts/upload-symbols.

Modify upload_symbols_to_crashlytics action

The next step is to make the upload_symbols_to_crashlytics action using the upload-symbols script we just copied.

Add new parameter binary_path: './scripts/upload-symbols' to your upload_symbols_to_crashlytics action.

upload_symbols_to_crashlytics(
binary_path: './scripts/upload-symbols'
)

After all these changes, you should be able to upload dSYM to Firebase successfully.


Read more article about Development, Fastlane, or see all available topic

Enjoy the read?

If you enjoy this article, you can subscribe to the weekly newsletter.
Every Friday, you'll get a quick recap of all articles and tips posted on this site. No strings attached. Unsubscribe anytime.

Feel free to follow me on Twitter and ask your questions related to this post. Thanks for reading and see you next time.

If you enjoy my writing, please check out my Patreon https://www.patreon.com/sarunw and become my supporter. Sharing the article is also greatly appreciated.

Become a patron Buy me a coffee Tweet Share
Previous
Set SwiftUI app theme with AccentColor

An accent color is a simple and unified way to theming your app. This article will teach you how to set a global accent color for your app.

Next
How to change a Tab Bar item color in SwiftUI

By default, the selected tab bar item will use the iOS default blue color. Let's learn how to change this in SwiftUI.

← Home