Swift OC混编冲突方法探索

1.The following Swift pods cannot yet be integrated as static libraries:

The Swift pod *** depends upon,which do not define modules. To opt into those targets generating module maps (which is necessary to import them from Swift when building as static libraries), you may set use_modular_headers! globally in your Podfile, or specify :modular_headers => true for particular dependencies.

解决:

podfile 添加use_modular_headers! 或者use_frameworks! 或者部分添加:modular_headers => true

2.The 'Pods-TaiLife' target has transitive dependencies that include statically linked binaries:
解决:podfile 添加
复制代码
pre_install do |installer| 
Pod::Installer::Xcode::TargetValidator.send(:define_method, :verify_no_static_framework_transitive_dependencies) {}
end

emm,pod install后报红,***h' file not found。。。

相关推荐
C++ 老炮儿的技术栈2 小时前
UDP 与 TCP 的区别是什么?
开发语言·c++·windows·算法·visual studio
wgslucky2 小时前
Dubbo报错:module java.base does not “opens java.lang“ to unnamed module
java·开发语言·dubbo
whyeekkk3 小时前
python打卡第48天
开发语言·python
pop_xiaoli4 小时前
OC—UI学习-2
学习·ui·ios
DougLiang4 小时前
关于easyexcel动态下拉选问题处理
java·开发语言
全职计算机毕业设计4 小时前
基于Java Web的校园失物招领平台设计与实现
java·开发语言·前端
5:005 小时前
云备份项目
linux·开发语言·c++
笨笨马甲5 小时前
Qt Quick模块功能及架构
开发语言·qt
夜晚回家6 小时前
「Java基本语法」代码格式与注释规范
java·开发语言
YYDS3146 小时前
C++动态规划-01背包
开发语言·c++·动态规划