ios - 找不到“folly/folly-config.h”文件

标签 ios firebase react-native cocoapods folly

当我想通过 xcode 运行应用程序时遇到了这个问题

仅显示所有错误 /Users/ugur/Documents/Projects/MyApp/node_modules/react-native/ReactCommon/cxxreact/JSBundleType.h:10:10: 'folly/Portability.h' 文件未找到

# Uncomment the next line to define a global platform for your project
platform :ios, '9.0'

target 'MyApp' do
  # Uncomment the next line if you're using Swift or would like to use dynamic frameworks
  # use_frameworks!

  # Pods for MyApp
  pod 'React', :path => '../node_modules/react-native'
  pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga'
  # Required by RNFirebase
  pod 'Firebase/Core', '~> 5.15.0'

  # [OPTIONAL PODS] - comment out pods for firebase products you won't be using.
  pod 'Firebase/AdMob', '~> 5.15.0'
  pod 'Firebase/Auth', '~> 5.15.0'
  pod 'Firebase/Core', '~> 5.15.0'
  pod 'Firebase/Database', '~> 5.15.0'
  pod 'Firebase/Functions', '~> 5.15.0'
  pod 'Firebase/DynamicLinks', '~> 5.15.0'
  pod 'Firebase/Firestore', '~> 5.15.0'
  # pod 'Firebase/Invites', '~> 5.15.0'
  pod 'Firebase/Messaging', '~> 5.15.0'
  pod 'Firebase/RemoteConfig', '~> 5.15.0'
  pod 'Firebase/Storage', '~> 5.15.0'
  pod 'Firebase/Performance', '~> 5.15.0'
  pod 'Fabric', '~> 1.7.13'
  pod 'Crashlytics', '~> 3.10.9'
  pod 'RNIap', :path => '../node_modules/react-native-iap'

  pod 'Folly', :podspec => "../node_modules/react-native/third-party-podspecs/Folly.podspec"


end

最佳答案

我解决了所有问题

rm -rf $TMPDIR/metro-* && rm -rf $TMPDIR/haste-* && watchman watch-del-all && npm cache clean --force && npm cache verify && rm -rf ios/build && rm -rf node_modules/ && npm i

尝试后

rm -rf Pods && pod install

关于ios - 找不到“folly/folly-config.h”文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56407435/

相关文章:

ios - AFNetworking + MBProgressHUD 无法更新 HUD 状态

python - 验证 firebase 身份验证 token 权限被拒绝

FireBase 身份验证的优势

java - 如何将开关传递给我的 Android 应用程序以控制其在开发过程中的行为?

android - React Native : AppState. addEventListener 在点击通知时在恢复时注册重复事件

iphone - 如何在 iOS 应用程序中每 n 分钟获取一次后台位置更新?

ios - 旋转动画直到 UIViewController 消失

iphone - 将 SQLite 中的数据保存为 BLOB 是一种良好的编程习惯吗?

android - 应用程序在后台时未收到 Firebase 云消息

javascript - 如何从 react native 链接中排除包?