1.使用pod集成RN时报错:'jsireact/JSIExecutor.h' file not found
图片来自stackoverflow参考:
https://stackoverflow.com/questions/54460885/jsireact-jsiexecutor-h-file-not-found
原因:
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
网友评论