Skip to content

instabug shellScript clashes with react-native-version (iOS) #771

@breezertwo

Description

@breezertwo

Im opening this here because i tracked an issue with react-native-version down to the shell script added by instabug buildphase ([CP-User] [instabug-reactnative] Upload Sourcemap).
Im not familiar with shell scripts so I can't exactly pin the error and maybe someone here can help/fix it.
Something is wrong with an escape character.
If I remove the instabug shell script from project.pbxproj the versioning succeeds .

As a workaround I put the content into an external file and link it in build phases

Was working withinstabug-reactnative: 10.13.0

Steps to Reproduce the Problem

  • create new project: npx react-native init example
  • add "instabug-reactnative": "^11.0.2" via npm/yarn
  • run pod install
  • run npx react-native-version --target android,ios --generate-build

Expected Behavior

Updated versions in all iOS (&android files

Actual Behavior

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

SDK Version

11

React Native, iOS and Android Versions

11.0.2

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions