question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Fastlane sourcemaps Integration

See original GitHub issue

Description

Currently, there is a fastlane plugin to upload the native stuff for sourcemaps but nothing for JS. The docs are helpful but it would be really helpful to have this automated (since a React Native project setup is a fixed directory structure).

Describe the solution you’d like A plugin that would handle all of this since it can be automated and can then be part of the Fastlane process (thus, easily come after the increment_build_number command).

Describe alternatives you’ve considered We’re having to write our own custom commands for Fastlane via a shell command.

Additional context Add any other context about the feature request here.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:23
  • Comments:20 (4 by maintainers)

github_iconTop GitHub Comments

21reactions
dwiltcommented, May 25, 2018

@DanDatefit Of course. Here’s our Fastfile:

lane :beta do
    increment_build_number()
    upload_symbols_to_bugsnag # dYSMs
    sh("cd ../; npm run upload-release-sourcemaps-to-bugsnag") # JS sourcemaps
    match(type: "appstore") # more information: https://codesigning.guide
    gym(scheme: "OurScheme") # Build your app - more options available
    testflight(skip_waiting_for_build_processing: true)

    # sh "your_script.sh"
    # You can also use other beta testing services here (run `fastlane actions`)
  end

and here’s the upload-release-sourcemaps-to-bugsnag script in package.json:

"upload-release-sourcemaps-to-bugsnag": "npm run create-release-bundle; bugsnag-sourcemaps upload --api-key XXXXXXXXXXXXXXXXXX --minified-file build/ios-release.bundle --source-map build/ios-release.bundle.map --minified-url main.jsbundle --upload-sources"

and here’s the create-release-bundle script also in package.json:

"create-release-bundle": "rm -rf build; mkdir build; react-native bundle --platform ios --dev false --entry-file index.js --bundle-output build/ios-release.bundle --sourcemap-output build/ios-release.bundle.map --assets-dest build",

Keep in mind though, we still haven’t figured out how to upload the dYSMs correctly yet. So that part of the configuration could be completely wrong. We have figured out though how to do the source mapping for the javascript correctly (using the above).

5reactions
shercodercommented, Jun 26, 2018

Just pinging to see if there is any progress on this from the Bugsnag team?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Available Plugins - fastlane docs
Plugin for 'fastlane' that defines an action to export iOS and Android projects via Unity3d. This allows Unity3d to more easily integrate with...
Read more >
fastlane-plugin-bugsnag_sourcemaps_upload 0.1.2 → 0.2.0
fastlane -plugin-bugsnag_sourcemaps_upload 0.1.2 → 0.2.0 ; 15. 15. 16 ; - Helps to upload sourcemaps to Bugsnag.
Read more >
Source Maps for React Native | Sentry Documentation
The React Native SDK handles source maps automatically for iOS with Xcode and Android with Gradle, if you do not use custom values....
Read more >
Source Maps - Rollbar Docs
Getting started · 1. Raise descriptive errors from JavaScript · 2. Configure the rollbar.js SDK to support source maps · 3. Upload your...
Read more >
Build & deploy integrations - Bugsnag docs
Report application builds, source maps, symbol files, and deploys to Bugsnag. ... Fastlane. Upload dSYMs and report builds to Bugsnag using Fastlane.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found