-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hide-library-schemes breaks Sentry CLI #80
Comments
Yeah, the library schemes step just cleans up the menu in Xcode, there are no functional changes to the app or the build, it's just marking the schemes as hidden in the project files in I'm curious though why that'd fix and/or break it. Does Sentry rely on a particular scheme being visible that we're hiding or something? |
@thekevinbrown I see @matt-oakes seemed to find the issue and why that causes it here |
I just faced the same issue. My workaround is similar to yours, but more radical. I am bypassing the whole execution of react-native-schemes-manager xcode script. I say it's similar because the only added logic in the custom script are these 2 lines (or at least these are the only 2 I could identify as different). - $NODE_BINARY ../node_modules/@sentry/cli/bin/sentry-cli react-native xcode --force-foreground ../node_modules/react-native-schemes-manager/lib/react-native-xcode.sh
+ $NODE_BINARY ../node_modules/@sentry/cli/bin/sentry-cli react-native xcode --force-foreground ../node_modules/react-native/scripts/react-native-xcode.sh I did it with a simple hack: I added a "settings": {
"fix-script": {
"nodeCommand": "$NODE_BINARY ../node_modules/@sentry/cli/bin/sentry-cli react-native xcode --force-foreground ../node_modules/react-native/scripts/react-native-xcode.sh #"
}
}, But there is a way more important issue with this custom Xcode script! This script is actually a copy paste from react-native! I am really questioning the need for this script. OK we might need to hide the schemes, but why don't we do a separate Build phase that executes these 2 lines on its own? Does it need the previous stuff? I think that the current approach is very dangerous. It will lead to many problems without developers knowing. |
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. |
Very interesting. Thank you! Shouldn't we document this on the README? 😊 |
Sure, just haven't had time myself. PRs are welcome. |
Following this comment thekevinbrown#80 (comment)
Steps to reproduce the behavior
Have this as "Bundle React native code and images" script in your React-Native build phases:
Expected behavior
Release should be created in the appropriate Sentry project, with
main.jsbundle
andmain.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:
actually fixes the issue! :)
Also, it does not have any ill effects to the work of this package itself...
The text was updated successfully, but these errors were encountered: