我收到错误:未找到“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
解决方案:https://github.com/facebook/react-native/issues/38283#issuecomment-1714225995
“正文必须至少有 30 个字符;您输入了 9 个字符。” ——可笑。