-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
main.jsbundle.map: No such file or directory when iOS project name includes spaces #41844
Comments
Duplicates #41652 @maykonmichel I saw that your PR actually is different than this other one: #40937 |
It doesn't. Actually makes it worse as app is crashing for me.
Reproducible example here. |
Re-opening based on last comment. |
I had the same issue, but it was a space in the Scheme name that caused the build failure. Removing the space resolved the issue. This surfaced when migrating from 0.72.6 to 0.73.1. No problems before that. |
I had same issue with 0.73.2. To bypass this, I edited my XCode schema name to not have spaces. This of course shouldn't be necessary. |
I have spent numerous hours trying to figure out why upgrading to 0.73.2 from 0.71.X was failing. Renaming all references of my schema name to a name without spaces resolved this issue. |
Just wanted to add that I'm having this issue on 0.72.6. It seems to be the scheme name having a space that causes the issue. |
I was experiencing the same thing. Renaming the schemes by replacing spaces with hyphens resolved the issue for me. |
Fixed by #42220 |
Description
To enable React Native source maps, it is possible to include a
SOURCEMAP_FILE
environment variable in theios/.xcode.env
file. However, this method has a limitation: if the iOS project name contains a space, an issue arises. The problem stems from the fact that thereact-native/scripts/react-native-xcode.sh
script utilizes the basename command without enclosing the$SOURCEMAP_FILE
argument in double quotes, leading to unintended word splitting.Steps to reproduce
export SOURCEMAP_FILE="$DERIVED_FILE_DIR/main.jsbundle.map"
into theios/.xcode.env
file.React Native Version
0.72.7
Affected Platforms
Runtime - iOS
Output of
npx react-native info
Stacktrace or Logs
Reproducer
https://github.com/maykonmichel/reproducer-react-native
Screenshots and Videos
No response
The text was updated successfully, but these errors were encountered: