Pod 安装错误: 为 Pod::PodTarget 实例调用私有方法 'build_type'
作者: salahhusa9创建于 2026年10月1日更新于 2026年10月1日
Set by expo-router. This enables Fabric-only features from React-native-screens
ENV['RNS_GAMMA_ENABLED'] ||= '1'
require File.join(File.dirname(node --print "require.resolve('expo/package.json')"), "scripts/autolinking")
require File.join(File.dirname(node --print "require.resolve('React-native/package.json')"), "scripts/react_native_pods")
require 'json' podfile_properties = JSON.parse(File.read(File.join(dir, 'Podfile.properties.json'))) rescue {}
def ccache_enabled?(podfile_properties)
Environment variable takes precedence
return ENV['USE_CCACHE'] == '1' if ENV['USE_CCACHE']
Fall back to Podfile properties
podfile_properties['apple.ccacheEnabled'] == 'true' end
内容来源: CocoaPods/CocoaPods