When new Xcode build system is used, Xcode build fails to download third-party dependencies
Problem
Workaround (edit by @hramos) You may work around this by manually installing third party dependencies into your project. The following steps are based on the workaround provided by @lyon007 in #14382. 1. ` rm -rf node_modules/ && yarn cache clean && yarn install` and ` rm -rf ~/.rncache` 2. ` cd node_modules/react-native/scripts` 3. `./ios-install-third-party.sh` If your network is slow, you can download the packages separately and move them to the `rncache ` folder _1_. folly-2016.10.31.00 _2_. double-conversion-1.1.5 _3_. glog-0.3.5 _4_. boost_1_63_0 4. `cd <Your-Project-Folder>/node_modules/react-native/third-party/glog-0.3.5` 5. ` ../../scripts/ios-configure-glog.sh` 6. Xcode Clean & Build Original issue - [x] Review the documentation: https://facebook.github.io/react-native - [x] Search for existing issues: https://github.com/facebook/react-native/issues - [x] Use the latest React Native release: https://github.com/facebook/react-native/releases Environment React Native Environment Info: System: OS: macOS High Sierra 10.13.6 CPU: x64 Intel(R) Core(TM) i7-4870HQ CPU @ 2.50GHz Memory: 103.23 MB / 4.00 GB Shell: 3.2.57 - /bin/bash Binaries: Node: 10.9.0 - ~/.nvm/versions/node/v10.9.0/bin/node npm: 6.4.0 - ~/.nvm/versions/node/v10.9.0/bin/npm SDKs: iOS SDK: Platforms: iOS 12.0, macOS 10.14, tvOS 12.0, watchOS 5.0 IDEs: Xcode: 10.0/10L221o - /usr/bin
Error Output
error was encountered processing the command (domain=NSPOSIXErrorDomain, code=22):
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Solution: When new Xcode build system is used, Xcode build fails to download third-party dependencies
Ok, I think I have a temporary fix to get React Native to work with Xcode 10—change the shared project settings (or shared workspace settings if you're also using Cocoapods) to use the "Legacy Build System". File->Project/Workspace Settings->Build System: Legacy Build System. It's (not really) surprising that Facebook hasn't fixed this in the months that have passed since WWDC18. Good luck, every
Trust Score
9 verifications
- 1
Ok, I think I have a temporary fix to get React Native to work with Xcode 10—cha
Ok, I think I have a temporary fix to get React Native to work with Xcode 10—change the shared project settings (or shared workspace settings if you're also using Cocoapods) to use the "Legacy Build System". File->Project/Workspace Settings->Build System: Legacy Build System.
- 2
It's (not really) surprising that Facebook hasn't fixed this in the months that
It's (not really) surprising that Facebook hasn't fixed this in the months that have passed since WWDC18. Good luck, everyone.
- 3
EDIT: This issue didn’t always happen in Xcode on the Mac. It regularly failed w
EDIT: This issue didn’t always happen in Xcode on the Mac. It regularly failed when I pushed to a CI system like BuddyBuild.
Validation
Resolved in facebook/react-native GitHub issue #20774. Community reactions: 74 upvotes.
Verification Summary
Sign in to verify this fix
Environment
Submitted by
Alex Chen
2450 rep