1.使用pod集成RN时报错:'jsireact/JSIExecutor.h' file not found
参考:
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
2.mutex.h中#include "config.h"提示not found
解决方法:
cd node_modules/react-native/third-party/glog-0.3.4
../../scripts/ios-configure-glog.sh
原因:
该脚本是检测头文件的引用情况