mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-02-10 09:12:46 +08:00
Summary:
This is to fix a bug that prevents bundling of projects that contain spaces (or other special characters) in their names.
#### Reproduction steps before the fix
1. Create a project with a space in the name:

2. Follow the steps in `OPTION 2` for running from a bundled file, i.e. create the `main.bundle` file, add it to the project if is not there already, and uncomment `jsCodeLocation = [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];`
3. Run the application. This is what happens:

To prove that it has to do with a space in the name, refactor the project name to not contain a space:
![screen shot 2015-04-16 at 17 28 27](https://cloud.githubusercontent.com/assets/1121616/7176966/056b6c9a
Closes https://github.com/facebook/react-native/pull/876
Github Author: Herman Schaaf <hermanschaaf@gmail.com>
Test Plan: Imported from GitHub, without a `Test Plan:` line.