Skip to content

'boost/iterator/iterator_adaptor.hpp' file not found #14404

Closed
@maquanhong

Description

@maquanhong

fatal error: 'boost/iterator/iterator_adaptor.hpp' file not found
#include <boost/iterator/iterator_adaptor.hpp>
^
1 error generated.

** BUILD FAILED **

The following build commands failed:
CompileC /Users/maquanhong/项目/RN/AwesomeProject/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/third-party.build/Objects-normal/x86_64/Bits.o /Users/maquanhong/项目/RN/AwesomeProject/node_modules/react-native/third-party/folly-2016.09.26.00/folly/Bits.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)

Installing build/Build/Products/Debug-iphonesimulator/AwesomeProject.app
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2):
Failed to install the requested application
An application bundle was not found at the provided path.
Provide a valid path to the desired application bundle.
Print: Entry, ":CFBundleIdentifier", Does Not Exist

Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/AwesomeProject.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist

How can I fix the error?

Activity

adjustit

adjustit commented on Jun 9, 2017

@adjustit

I got around this by manually downloading the Boost 1.63 package (https://sourceforge.net/projects/boost/files/boost/1.63.0/) and installing it into the third_party/ folder manually. It's not a great fix, but nonetheless, it at least works.

srijak

srijak commented on Jun 9, 2017

@srijak

I just ran into this after a fresh install of react-native.

Doesn't seem like it should be closed because the solution is very much a workaround.

There was already a node_modules/react-native/third-party/boost_1_63_0, and I downloaded+extracted+replaced it.

hramos

hramos commented on Jun 9, 2017

@hramos
Contributor

I closed the issue because there was no effort to fill out the issue template. Please open a new issue and make sure to fill it out.

srijak

srijak commented on Jun 9, 2017

@srijak
haseebyf

haseebyf commented on Jun 12, 2017

@haseebyf

downloaded and replaced boost_1_63_0.tar.gz in the .rncache folder. It seem to fix the problem for me.

wzso

wzso commented on Jun 29, 2017

@wzso

In my case the boost_1_63_0.tar.gz and double-conversion-1.1.5.tar.gz in the ~/.rncache directory went wrong for some reason, not in full solid size( which is 12.3M & 7M). After I copied them from my colleague, things go smooth. @maquanhong I think there has something to do with the special network status of cn.

hramos

hramos commented on Aug 4, 2017

@hramos
Contributor

Duplicate of #14423

locked and limited conversation to collaborators on Aug 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @srijak@hramos@haseebyf@maquanhong@wzso

        Issue actions

          'boost/iterator/iterator_adaptor.hpp' file not found · Issue #14404 · facebook/react-native