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.

hide-library-schemes breaks Sentry CLI

See original GitHub issue

Steps to reproduce the behavior

Have this as “Bundle React native code and images” script in your React-Native build phases:

export DEVELOPMENT_BUILD_CONFIGURATIONS="+(Debug)"
export NODE_BINARY=node
export SENTRY_PROPERTIES=./sentry.properties

$NODE_BINARY ../node_modules/@sentry/cli/bin/sentry-cli react-native xcode ../node_modules/react-native-schemes-manager/lib/react-native-xcode.sh

Expected behavior

Release should be created in the appropriate Sentry project, with main.jsbundle and main.jsbundle.map files uploaded.

Actual behavior

Release is not created, and no files are ever uploaded.

Notes

So, I was moving stuff around in the build script, and noticed that removing these two lines:

cd "$SCHEMES_MANAGER_DIR/../.."
$NODE_BINARY "$SCHEMES_MANAGER_DIR/index.js" hide-library-schemes

actually fixes the issue! 😃

Also, it does not have any ill effects to the work of this package itself…

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
thekevinbrowncommented, Dec 15, 2021

When this package was built, React Native did not handle schemes correctly. The script was copy / paste with modifications to enable schemes to work.

In versions of React native >0.6.0, this package is no longer needed at all.

0reactions
thekevinbrowncommented, Dec 17, 2021

Sure, just haven’t had time myself. PRs are welcome.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using React-native-sentry with Schemes · Issue #473 - GitHub
Hello, I'm trying to get this react-native-sentry to work with https://github.com/thekevinbrown/react-native-schemes-manager to be able to use ...
Read more >
Command Line Interface - Sentry Documentation
Learn about the functionality of Sentry's command line interface and how you can install, configure, authenticate, set up release management, debug information ...
Read more >
@sentry/cli | Yarn - Package Manager
Change JS bindings to be conform with the cli interface Please note that this is a breaking change if you used the JS...
Read more >
node.js - ERR_INVALID_PROTOCOL when installing sentry-cli
Your proxy server (pkg.proxy.prod.jp.local) is using http protocol, so it cannot proxy an https request that our install script is ...
Read more >
Sentry releases are broken due to no ordering - Development
Currently this is broken because we're getting reports from old versions. ... One needs to use sentry-cli to create releases and maybe it's ......
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