Skip to content

Error when using react-native-version #1000

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

Closed
dimashpt opened this issue Jul 11, 2023 · 1 comment
Closed

Error when using react-native-version #1000

dimashpt opened this issue Jul 11, 2023 · 1 comment

Comments

@dimashpt
Copy link

dimashpt commented Jul 11, 2023

Steps to Reproduce the Problem

  1. Use react-native-version for bumping project version
  2. Find error located in sourcemaps.sh:
[RNV] Versioning iOS...
[RNV] SyntaxError: Expected "\"", "\\'", "\\\"", "\\n", or [^\\"] but "\\" found.

Expected Behavior

The sourcemaps.sh should not contains backslashes

https://github.com/Instabug/Instabug-React-Native/blob/2b0a20dde5cc6285b6e6a316d51b650a375ff5e6/ios/sourcemaps.sh

Actual Behavior

[RNV] Versioning iOS...
[RNV] SyntaxError: Expected "\"", "\\'", "\\\"", "\\n", or [^\\"] but "\\" found.

SDK Version

11.12.0

React Native, iOS and Android Versions

0.71.11

Device Model

All iOS device

[Optional] Project That Reproduces the Issue

@a7medev
Copy link
Contributor

a7medev commented Jul 12, 2023

Hi @dimashpt! Thanks for reporting this issue.
After looking into it, it looks like it's not an issue with our sourcemaps.sh script. There should be no problem with having backslashes in a shell script, it's just that the parser react-native-version uses fails to parse the file when it contains backslashes.
I have found the issue reported on their GitHub repo as well (stovmascript/react-native-version#52), it was also reported on the parser's GitHub repo (NativeScript/pbxproj-dom#9).

@a7medev a7medev closed this as completed Jul 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants