ReactNative错误记录:
2019-02-18 本文已影响0人
叫我逗Bee
1.使用pod集成RN时报错:'jsireact/JSIExecutor.h' file not found
参考:
https://stackoverflow.com/questions/54460885/jsireact-jsiexecutor-h-file-not-found
![](https://img.haomeiwen.com/i1785849/23928b360f0d7af7.png)
原因:
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