Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Problems with React-Native v 0.45.0 on building on XCode

Tags:

I initialized a react native project. It installed with 0.45.0 version of react-native.

XCode isn't able to build it. There is a problem with config.hpp file. Error is highlighted in red color, which says "'boost/config/user.hpp' file not found"

like image 761
Vishal Kumar Avatar asked Jun 08 '17 10:06

Vishal Kumar


People also ask

Can you use react native in Xcode?

You will need Node, Watchman, the React Native command line interface, a Ruby version manager, Xcode and CocoaPods. While you can use any editor of your choice to develop your app, you will need to install Xcode in order to set up the necessary tooling to build your React Native app for iOS.

How add react in Xcode?

Add new React to scheme In Xcode, select Product > Scheme > Edit Scheme On the left, Select Build Old React should be missing here, so delete it by clicking - button on the bottom. Add new React with + button, select it from Pods project Grab and move React to the top of the list.

What is React Native used for?

React Native is an open-source UI software framework created by Meta Platforms, Inc. It is used to develop applications for Android, Android TV, iOS, macOS, tvOS, Web, Windows and UWP by enabling developers to use the React framework along with native platform capabilities.


2 Answers

Been struggling with this issue all day today. Looks like there might be something in the latest version of react-native that is causing the build issues. And I tried just about everything to fix it.

Not sure what the long-term solution is, but I just rolled back to 0.44.0 and that seems to be working for me as a temporary fix.

react-native init MyAwesomeApp --version [email protected]
like image 136
weston Avatar answered Sep 30 '22 01:09

weston


delete $APP_DIR/node_modules/react-native/third-party/glog-0.3.4

download glob-0.3.5 from https://github.com/google/glog replace glob-0.3.4

like image 38
SeanSnow Avatar answered Sep 30 '22 00:09

SeanSnow