我遇到了一个错误:找不到'react/debug/react_native_assert.h'文件,以及React-utils/RunLoopObserver。问题似乎是我添加的一个pre_install钩子引起的。
dynamic_frameworks = [
'Starscream',
'iProov',
'DatadogSDK',
'SwiftProtobuf',
]
pre_install do |installer|
installer.pod_targets.each do |pod|
if !dynamic_frameworks.include?(pod.name)
puts "Overriding the static_framework? method for #{pod.name}"
def pod.static_framework?;
true
end
def pod.build_type;
Pod::BuildType.static_library
end
end
end
end
I cannot remove the pre_install hook as it is required to run one of my dependencies