唯一的解决方案是在安装到
Podfile
内部
ios
文件夹,若要执行此操作,请打开
播客文件
然后列出要更改的pod:
# Convert Skia pods into static libraries
$static_library = [
'react-native-skia/Api',
'react-native-skia/Jsi',
'react-native-skia/RNSkia',
'react-native-skia/SkiaHeaders',
'react-native-skia/Utils',
'react-native-skia',
]
然后在上述代码之后添加以下代码:
pre_install do |installer|
Pod::Installer::Xcode::TargetValidator.send(:define_method, :verify_no_static_framework_transitive_dependencies) {}
installer.pod_targets.each do |pod|
## Skia pod correction
if $static_library.include?(pod.name)
puts "Overriding the build_type to static_library from static_framework for #{pod.name}"
def pod.build_type;
Pod::BuildType.static_library
end
end
## Firebase
bt = pod.send(:build_type)
puts "#{pod.name} (#{bt})"
puts " linkage: #{bt.send(:linkage)} packaging: #{bt.send(:packaging)}"
end
end
请在更改后,在您的
操作系统
文件夹运行
pod install
命令,然后尝试构建您的项目。