react-native-community / boost-for-react-native

The Boost C++ library source code used to build React Native from source
Boost Software License 1.0
86 stars 56 forks source link

IOS build fails: <include> files cannot be found #12

Open Orijinn-github opened 4 years ago

Orijinn-github commented 4 years ago

Bug report

Summary

When building the project, it fails with various "file not found" messages for files inside For example, ` fatal error: 'boost/config/warning_disable.hpp' file not found

include <boost/config/warning_disable.hpp>

`

Environment info

react-native info output:

System:
  OS: macOS 10.15.4
  CPU: (8) x64 Intel(R) Core(TM) i7-4980HQ CPU @ 2.80GHz
  Memory: 536.50 MB / 16.00 GB
  Shell: 3.2.57 - /bin/bash
 Binaries:
  Node: 12.12.0 - /usr/local/bin/node
  Yarn: 1.19.1 - /usr/local/bin/yarn
  npm: 6.11.3 - /usr/local/bin/npm
  Watchman: 4.9.0 - /usr/local/bin/watchman
 SDKs:
  iOS SDK:
   Platforms: iOS 13.5, DriverKit 19.0, macOS 10.15, tvOS 13.4, watchOS 6.2
 IDEs:
  Xcode: 11.5/11E608c - /usr/bin/xcodebuild
 npmPackages:
  react: 16.9.0 => 16.9.0 
  react-native: 0.61.0 => 0.61.0 
 npmGlobalPackages:
  babel-preset-react-native: 5.0.0
  jest-react-native: 18.0.0
  react-native-animatable: 1.3.2
  react-native-carrier-info: 1.1.1
  react-native-cli: 2.0.1
  react-native: 0.59.10
[...]

Library version: 1.63.0

Steps to reproduce

  1. npm i
  2. cd ios && pod install
  3. react-native run-ios

The build will fail. I saw all the Stackoverflow posts regarding the issue, e.g. this one - nothing helps.

Seems as the lib misses a path of some kind.

Will greatly appreciate any help or idea.

andrey-shostik commented 3 years ago

I had similar issue, Xcode couldn't find the config.hpp. As understand it is issue with your system/cocoapods, files of boost-for-react-native is not completely downloaded. As temporary solution you can download missing files directly from the repo and paste them to your project.