question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

iOS build fails if path of a project path includes a space

See original GitHub issue

Environment

React Native Environment Info: System: OS: macOS 10.14.1 CPU: (4) x64 Intel® Core™ i5-7267U CPU @ 3.10GHz Memory: 317.20 MB / 16.00 GB Shell: 5.3 - /bin/zsh Binaries: Node: 10.13.0 - ~/.nvm/versions/node/v10.13.0/bin/node Yarn: 1.12.3 - /usr/local/bin/yarn npm: 6.4.1 - ~/.nvm/versions/node/v10.13.0/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman SDKs: iOS SDK: Platforms: iOS 12.1, macOS 10.14, tvOS 12.1, watchOS 5.1 Android SDK: API Levels: 26, 27, 28 Build Tools: 26.0.3, 27.0.3, 28.0.2, 28.0.3 System Images: android-26 | Google APIs Intel x86 Atom_64, android-28 | Google APIs Intel x86 Atom IDEs: Android Studio: 3.1 AI-173.4907809 Xcode: 10.1/10B61 - /usr/bin/xcodebuild npmPackages: react: 16.6.1 => 16.6.1 react-native: 0.57.5 => 0.57.5 npmGlobalPackages: react-native-cli: 2.0.1 react-native-git-upgrade: 0.2.7

Description

If any folder within your project directory contains a space the build will fail, a new react native project was created in folder untitled and built with no issues, and another created in folder untitled folder and failed to find a file within the directory.

../Documents/untitled folder/test/node_modules/react-native/scripts/ios-install-third-party.sh: line 56: /ios-configure-glog.sh: No such file or directory

Reproducible Demo

This is reproducible if you create a new RN project in a folder with a space.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
Bersaelorcommented, Jun 25, 2019

Just wasted another 2h on this exact same issue. "react-native": "0.59.5",, Xcode 10.2.1 @thymikee

1reaction
canpoyrazoglucommented, May 15, 2019

Same issue here on RN 0.59. Lost about 5 hours because of this bug. I’ve removed the space from my project’s path and everything worked perfectly.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Xcode project/app name with spaces issue - framework not ...
Click on your project (targets)-> Click on Build Settings-> Under Frameworks Search Paths, delete the paths. Share.
Read more >
Xcode 12 ProcessXCFramework fails to copy headers on build
I'm trying to build and run my app from Xcode 12 but the ProcessXCFramework ... Note: the file does not already exist at...
Read more >
Xcode Build Settings
Specifies whether the header map contains a name/path entry for every header in the project, regardless of the headers' target membership. Type ...
Read more >
Shared Android project with spaces in path won't compile
This only occurs when you have a Shared Items project, and are compiling for Android, and have spaces in the project path. Strangely,...
Read more >
[issue] spaces in project path cause build errors (was
are you comfortable sharing the source? or if not, are you able to create a bare-bones version that reproduces the error? Audit Environment....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found