美文网首页
ReactNative错误记录:

ReactNative错误记录:

作者: 叫我逗Bee | 来源:发表于2019-02-18 16:02 被阅读0次

1.使用pod集成RN时报错:'jsireact/JSIExecutor.h' file not found

参考:
https://stackoverflow.com/questions/54460885/jsireact-jsiexecutor-h-file-not-found

图片来自stackoverflow

原因:

jsiexecutor的头文件路径错误

解决方法:

修改node_modules/react-native/React.podspec中的jsiexecutor头文件路径如下,然后重新pod install 或者pod update:

s.subspec "jsiexecutor" do |ss|
    ss.dependency             "React/cxxreact"
    ss.dependency             "React/jsi"
    ss.dependency             "Folly", folly_version
    ss.compiler_flags       = folly_compiler_flags
    ss.source_files         = "ReactCommon/jsiexecutor/jsireact/*.{cpp,h}"
    ss.private_header_files = "ReactCommon/jsiexecutor/jsireact/*.h"
    ss.header_dir           = "jsireact"
    ss.pod_target_xcconfig  = { "HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)/ReactCommon\", \"$(PODS_TARGET_SRCROOT)/ReactCommon/jsiexecutor\"" }
  end

相关文章

  • ReactNative错误记录

    1.Could not install the app on the device, read the error...

  • ReactNative错误记录:

    1.使用pod集成RN时报错:'jsireact/JSIExecutor.h' file not found 参考...

  • reactnative错误

    我搭建好reactnative的环境后创建的项目都无法运行 一直会报 Connection to localhos...

  • 初识ReactNative

    本人小白,也是最近才开始学习ReactNative,只是想记录自己的学习历程,供日后查阅复习,文中有任何错误或者不...

  • ReactNative错误汇总

    1. Android 报错 react native syntaxError:Attempted to redef...

  • ReactNative 常见错误

    升级 Xcode 后 'config.h' file not found解决办法 2.'React/RCTBund...

  • ReactNative错误方案

    1、初始化命令,导入所有组件模块:npm install 2、查看当前未处于最新版本的组件包:npm outdat...

  • ReactNative错误合集

    ScrollView设置contentOffset无效的的问题 问题描述:最近把公司项目从0.43版本升级到0.4...

  • ReactNative常见错误

    Packager can't listen on port8081 You can configure the p...

  • ReactNative错误总结

    以下错误的环境是:React:15.4.2ReactNative:0.40.0 1 Element type is...

网友评论

      本文标题:ReactNative错误记录:

      本文链接:https://www.haomeiwen.com/subject/icoaeqtx.html