ios - Xcode 12 模块 'RxSwift' 未在库演化支持下编译;使用它意味着无法保证 '' 的二进制兼容性
解决方案
您收到这些警告的原因是 podBUILD_LIBRARY_FOR_DISTRIBUTION
在其构建设置中缺少标志。
将以下post_install
脚本添加到您的 podfile 并确保它在您的target 'app' do
块之外:
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['BUILD_LIBRARY_FOR_DISTRIBUTION'] = 'YES'
end
end
end
查看以下问题了解更多详情: https ://github.com/CocoaPods/CocoaPods/issues/9232
我不会掉以轻心。请参阅以下关于 swift 论坛的讨论: https ://forums.swift.org/t/risks-of-compiler-warning-module-was-not-compiled-with-library-evolution-support/33941
推荐阅读
- excel - 从单元格公式调用时,VBA 在单元格中插入默认值
- r - 使用 dbWriteTable 使用现有键写入表时出错
- javascript - JS:添加带有动态文本输入的列表元素
- python - 将 datetime.datetime 从 UTC 转换为 CEST 一小时到更少
- javascript - 如何在文本框中的文本前面放置 ₹ 符号,₹ 不应该是可编辑的?
- ios - 在混合应用程序中为 iOS 模拟器构建错误
- algorithm - 递归地将数字 4 的所有分区枚举为四个有序数字?
- java - Java 中的 Azure 函数在本地无法运行
- laravel - Laravel 7 - 随机延迟(主要是 ajax 请求 - 从 300ms 到随机 4,5s)
- ios - 在 ViewWillAppear 和 ViewWillDisappear UI 故障处隐藏/显示导航栏