fix(ios-template): escaped-quote form to bundle RN when spaces present in path#54172
fix(ios-template): escaped-quote form to bundle RN when spaces present in path#54172frankcalise wants to merge 1 commit intofacebook:mainfrom
Conversation
The change you're sending is only for the helloworld app. The template actually lives here: https://github.com/react-native-community/template |
|
thanks @cortinico I'll make it over there. Do you want this one to remain or it's not really important on this side? |
|
Yeah we'd need both |
|
Ok. I will fix the diff, it should only be a single line |
|
yeah, the actual project file has been moved to the |
cipolleschi
left a comment
There was a problem hiding this comment.
Great job, but you need to sync your fork of React Native and apply the changes to the project located in the private folder.
aaec1bf to
0c3d081
Compare
|
This PR is stale because it has been open for 180 days with no activity. It will be closed in 7 days unless you comment on it or remove the "Stale" label. |
|
This PR was closed because it has been stalled for 7 days with no activity. |
Summary:
By default, if you init an iOS project in a directory that contains spaces, it will fail in the Build Phase of
Bundle React Native code and images. Removing the space from the directory, the project can successfully build. This is due to an improperly escaped string in the script found in the iOS project file.Changelog:
[IOS] [FIXED] - iOS project will build successfully if spaces are present in the project path
Test Plan:
mkdir -p ~/code/test dirnpx @react-native-community/cli@latest init TestingSpacesnpm run iosObserve the build fails due to the Build Phase of
Bundle React Native code and imagesModify the shell script in the build phase to:
Run the iOS application again and see that it builds successfully