首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >React Native IOS platform 'folly/Portability.h‘文件未找到

React Native IOS platform 'folly/Portability.h‘文件未找到
EN

Stack Overflow用户
提问于 2020-01-15 20:43:52
回答 1查看 1.1K关注 0票数 0

我查看了之前打开的主题,没有解决方案,

https://stackoverflow.com/a/25257238/12702367

我按照指示去做了。从xcode启动时出现错误

找不到“‘folly/Portability.h”文件

xcode返回此错误

没有叫folly的文件。

enter image description here

代码语言:javascript
复制
{
  "name": "..",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "start": "node node_modules/react-native/local-cli/cli.js start",
    "test": "jest"
  },
  "dependencies": {
    "@react-native-community/async-storage": "^1.6.2",
    "@react-native-community/datetimepicker": "^2.1.0",
    "axios": "^0.19.0",
    "buffer": "^5.4.3",
    "formik": "^1.5.2",
    "mobx": "^5.9.4",
    "mobx-react": "^5.4.3",
    "moment": "^2.24.0",
    "native-base": "^2.13.8",
    "react": "16.8.3",
    "react-native": "0.59.8",
    "react-native-24h-timepicker": "^1.0.0",
    "react-native-flash-message": "^0.1.15",
    "react-native-gesture-handler": "^1.1.0",
    "react-native-image-picker": "^0.27.2",
    "react-native-image-resizer": "^1.0.1",
    "react-native-maps": "https://github.com/react-native-community/react-native-maps.git#c102c36d895cbef8b6a8deefd4c58fb0dc17638e",
    "react-native-uuid": "^1.4.9",
    "react-native-permissions": "2.0.0",
    "react-native-vector-icons": "^6.6.0",
    "react-navigation": "^3.6.1",
    "recyclerlistview": "^2.0.12",
    "yup": "^0.27.0"
  },
  "devDependencies": {
    "@babel/core": "7.6.2",
    "@babel/plugin-proposal-decorators": "^7.6.0",
    "@babel/runtime": "7.6.2",
    "babel-jest": "24.9.0",
    "babel-plugin-transform-decorators-legacy": "^1.3.5",
    "babel-plugin-transform-remove-console": "^6.9.4",
    "jest": "24.9.0",
    "metro-react-native-babel-preset": "0.56.0",
    "react-test-renderer": "16.8.3"
  },
  "jest": {
    "preset": "react-native"
  },
  "rnpm": {
    "assets": [
      "resources/fonts"
    ]
  }
}

当前podfile。错误的来源可能是因为folly文件夹没有正确传输?

代码语言:javascript
复制
    # Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'

target '..' do
  # Comment the next line if you don't want to use dynamic frameworks
  use_frameworks!

  # Pods for ..

# Pods for ..
pod 'React', :path => '../node_modules/react-native'
pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga'
pod 'RNPermissions', :path => '../node_modules/react-native-permissions'


# 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'



  target '..Tests' do
    inherit! :search_paths
    # Pods for testing
  end

end
EN

回答 1

Stack Overflow用户

发布于 2020-01-22 13:34:34

这意味着您还没有正确安装pod!错误说明Xcode无法找到.h文件,因为它无法在项目中看到这样的库或路径!尝试先清理代码,然后切换到终端并重新安装pod!我希望它能解决你的问题!

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/59751715

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档