hide-library-schemes breaks Sentry CLI
See original GitHub issueSteps 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:
- Created 4 years ago
- Comments:6 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
Sure, just haven’t had time myself. PRs are welcome.