ios - 'folly/folly-config.h' 文件未找到
问题描述
当我想通过 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
推荐阅读
- dns - 为我自己的域设置 Firebase 托管时,我可以为 mailgun 设置 CNAME 吗?
- firebase - 为什么我的 Firebase 函数不能从 CLI 部署?
- android - 我可以使用 Activity.finish() 设置活动结果吗
- java - 如何解析二维 json 数组
- javascript - 如何在不重新渲染随机放置的同级组件数组的情况下根据滚动位置更新样式组件的样式?
- jquery - Chart.js 和从 Hiddenfields 加载参数
- python-3.x - 我需要根据用户在odoo中选择的月份来获取月份的开始日期和结束日期
- c++ - 在 C++ lambda 函数中捕获成员变量
- c++ - 将数据从一个类传递到另一个类而不传递对象
- django - Django 1.11.7 --> 2.0 --> 2.2 迁移 - 运行服务器和墙检查错误