嗨,我对本机反应很陌生,我正在尝试集成第三方动态框架 SSZiparchive,但它不起作用。我在网上发现了建议使用 use_modular_headers 的相互冲突的遮阳篷!而不是use_frameworks!在 pod 文件中,但无论哪种方式都不起作用。
这是我的播客文件:
require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
platform :ios, '10.0'
target 'reactNative' do
use_modular_headers!
pod 'SSZipArchive'
config = use_native_modules!
use_react_native!(:path => config["reactNativePath"])
# Enables Flipper.
#
# Note that if you have use_frameworks! enabled, Flipper will not work and
# you should disable these next few lines.
use_flipper!
post_install do |installer|
flipper_post_install(installer)
end
end
target 'reactNative-tvOS' do
# Pods for reactNative-tvOS
target 'reactNative-tvOSTests' do
inherit! :search_paths
# Pods for testing
end
end
在这不起作用之后,我从在线解决方案将此行添加到 podfile 中:
pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec', :modular_headers => false
pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec', :modular_headers => false
现在我得到了错误
Flipper-DoubleConversion.modulemap:1:8: Redefinition of module 'DoubleConversion'
和
stddef.h:102:10: Could not build module '_Builtin_stddef_max_align_t''
和
CoreFoundation.h:16:10: Could not build module 'Darwin'
有任何想法吗?谢谢