React-native: 'folly/folly-config.h' file not found

Created on 9 Apr 2018  ·  12Comments  ·  Source: facebook/react-native

image
I've got the issue "folly/folly-config.h' file not found"
"react-native" : "0.55.1"
I‘ve create the profile

pod 'React', :path => '../../node_modules/react-native', :subspecs => [
    'Core',
    'CxxBridge', # Include this for RN >= 0.47
    'DevSupport', # Include this to enable In-App Devmenu if RN >= 0.43
    'RCTText',
    'RCTNetwork',
    'RCTWebSocket', # Needed for debugging
    'RCTAnimation', # Needed for FlatList and animations running on native UI thread
    # Add any other subspecs you want to use in your project
  ]
  # Explicitly include Yoga if you are using RN >= 0.42.0
  pod 'yoga', :path => '../../node_modules/react-native/ReactCommon/yoga'

  # Third party deps podspec link
  pod 'DoubleConversion', :podspec => '../../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
  pod 'glog', :podspec => '../../node_modules/react-native/third-party-podspecs/glog.podspec'
  pod 'Folly', :podspec => '../../node_modules/react-native/third-party-podspecs/Folly.podspec'

install success
then I run the ios product get the "folly/folly-config.h' file not found" Error message
How can I solve it?

iOS Locked

Most helpful comment

This happens when your pod cache is corrupted. Try cleaning the Xcode project, then the build folder, then the DerivedData folder, then the pod cache, then run again pod install.

All 12 comments


Thanks for posting this! It looks like your issue may be incomplete. Are all the fields required by the Issue Template filled out?

If you believe your issue contains all the relevant information, let us know in order to have a maintainer remove the No Template label. Thank you for your contributions.

How to ContributeWhat to Expect from Maintainers

This happens when your pod cache is corrupted. Try cleaning the Xcode project, then the build folder, then the DerivedData folder, then the pod cache, then run again pod install.

Duplicate of #18683?

Nice catch, thanks @maxdavidson.

Duplicate of https://github.com/facebook/react-native/issues/18683

@alreadyRight
哥们,你的这个问题解决没有

当时没解决,但现在按照RN文档上操作一遍就成功了

@alreadyRight
自己搞个新项目能行,
在原来项目就报错

Going back to 0.54.2 worked for me. 0.55.0 should not have been released as stable.

Going back to 0.54.4 worked for me.

@alreadyRight 按照哪块的文档操作好的呀

For me, going forward to 0.54.4 fixed the problem (I was previously on 0.54.3)

@alreadyRight
自己搞个新项目能行,
在原来项目就报错

遇到了同样的问题,你后来怎么解决的丫?

Was this page helpful?
0 / 5 - 0 ratings