-
Notifications
You must be signed in to change notification settings - Fork 74
Syntax Error while versioning iOS #52
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
Comments
Looks similar to: #38 (comment) and: #38 (comment) |
@aruldd Is it possible you have manually set up some paths in your Xcode project file? |
Found the issue, the problem comes from React Native made in Windows that will have backslashed paths inside pbxproj. It's not a problem from your package at all @stovmascript .
and change them to
|
@VinceBT Awesome, I'll capture this message and print out something more meaningful. |
@VinceBT I also suspect that it's more of an issue with |
It's just because Windows uses |
@aruldd Tell us if it worked for you so @stovmascript can close |
Fix #52 Add "Known issues" to README
I'm getting this issue when running on Mac OSX, is that expected? I'm on 3.2.0 |
Yeah there seems to be some paths in pbxproj that cocoapods installs that has the windows syntax as well. Had to go in and edit them manually, now it works. This does happen on macs as well apparently, might wanna update docs. |
Hmm, this seems like a bug with cocoapods, or even some specific packages. I'm wondering if we could find the offending upstream code and report it... |
Or we could patch |
If it helps, offending line was:
Had to remove the |
I have a more "funny" case. My error was "SyntaxError: Expected """, "\'", "\"", "\n", or [^\\"] but "\" found.", so I searched for \ in the project.pbxproj and the only place where it was present was
So basically it failed parsing the shell script, which is kind of weird. I removed this script and the error was gone, so it's this indeed. |
your command line appers like this?
|
Facing the same problem after adding a custom build script, have been using the library without any issues for a year, but stuck now. Lots of backslashes in the script to escape quotes and spaces, so not sure how to fix it. EDIT: I've created an issue in |
Just to clarify though -- I'm facing this issue on macOS. Here's the exact error:
EDIT: Managed to resolve the issue by checking through my build settings and removing some |
In our case it was newest react with @sentry/react-native having offending lines in shell script (copied from official Sentry documentation about workaround for RN >0.69)
|
Here is the final version of working shellScript in Sentry v5 and RN v0.71 shellScript = "set -e\nexport SENTRY_PROPERTIES=sentry.properties\nexport EXTRA_PACKAGER_ARGS=\"--sourcemap-output $DERIVED_FILE_DIR/main.jsbundle.map\"\nWITH_ENVIRONMENT=\"../node_modules/react-native/scripts/xcode/with-environment.sh\"\nREACT_NATIVE_XCODE=\"../node_modules/react-native/scripts/react-native-xcode.sh\"\nSENTRY_CLI_PATH=\"../node_modules/@sentry/cli/bin/sentry-cli\"\n/bin/sh -c \"$WITH_ENVIRONMENT $SENTRY_CLI_PATH react-native xcode\n$REACT_NATIVE_XCODE\"\n/bin/sh ../node_modules/@sentry/react-native/scripts/collect-modules.sh\n"; |
I'm experiencing this issue with Sentry. I suspect this line is causing the problem, but I don't know how to fix it:
Any way to solve this? |
i have the same error on MacOs now. any one fixed this please ? |
were you able to fix it? |
SyntaxError: Expected """, "\'", "\"", "\n", or [^\\"] but "\" found. similar to above it was Sentry shell script. I am on a mac. in several places I had to replace |
Faced the same issue with Mac. Resolved with changing
to
The key: |
This works form me, thanks! |
After setting up post version hook, running the command
yarn version --minor
produces this error.Platform: Windows 10
The text was updated successfully, but these errors were encountered: