iOS:React 本机版本 0..72.1 -> 'react/debug/react_native_assert.h' 文件未找到错误

问题描述 投票:0回答:1

我收到错误:未找到“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
javascript xcode react-native cross-platform podfile
1个回答
0
投票

解决方案:https://github.com/facebook/react-native/issues/38283#issuecomment-1714225995

“正文必须至少有 30 个字符;您输入了 9 个字符。” ——可笑。

© www.soinside.com 2019 - 2024. All rights reserved.