How to upload dsyms files which developed with Flutter?

后端 未结 3 2059
有刺的猬
有刺的猬 2021-02-19 17:32

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

<

相关标签:
3条回答
  • 2021-02-19 17:53

    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
    0 讨论(0)
  • 2021-02-19 17:53

    After building an Archive of your Flutter app (using Xcode), you can run the following command from your Flutter App's ios directory (using Firebase's upload tool):

    Pods/FirebaseCrashlytics/upload-symbols -gsp /path/to/GoogleService-Info.plist -p ios build/Runner.xcarchive/dSYMs
    

    Change the above command line to point to the correct Firebase plist file. the -p flag specifies platform (which can be ios, mac, or tvos). The above command will also look for the App's archive file Runner.xcarchive.

    0 讨论(0)
  • 2021-02-19 17:55

    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.

    0 讨论(0)
提交回复
热议问题