美文网首页
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错误记录:

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