How to upload dsyms files which developed with Flu

2020-08-18 05:55发布

问题:

I am developing one Cross-platform app with flutter support. I Integrated firebase Crashlytics for crash reports. before I need to check report one error message comes

Upload 1 missing dSYM required to process 4 crashes

for that, I tried firebase docs

Get deobfuscated crash reports

also, I followed steps to build iOS Archive with flutter

Preparing an iOS App for Release

Still, There is the same issue on firebase portal

Upload 1 missing dSYM required to process 4 crashes

I tried this many times but still not done yet.

If someone has Idea then please help me to fix this issue.

Thanks, Community

回答1:

When preparing my app for release I take these steps to export, upload, and get the dSYM's:

  1. In terminal I run 'flutter build ios --release'
  2. Open the iOS project in xCode and switch the device to 'Generic iOS Device'
  3. From the top menu Product>Archive
  4. Once finished the Organizer window will show your archived build. You can also manually open this window from Window>Organizer
  5. Choose the build you want to upload to iTunes Connect and hit Distribute App and follow the process
  6. After upload is complete right click on the build in the organizer window and click 'Show in Finder'
  7. You should see an archive file in finder, right-click it and click 'Show Package Contents'.
  8. Inside there should be a folder called dSYM that you can zip and send wherever you need


回答2:

you can use Fastlane to automate also this as part of release process. here's an example that can go into your Fastfile

platform :ios do
  desc "Upload symbols to Crashlytics"
  lane :toCrashlytics do
    upload_symbols_to_crashlytics
  end
end

then you can run fastlane ios toCrashlytics to run it.

see this link for more details.