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。。。

相关推荐
南棱笑笑生12 分钟前
20250202本地编译全志R系列的步骤6增加了samba处理项目
开发语言·r语言
DARLING Zero two♡1 小时前
C++底层学习预备:模板初阶
开发语言·c++·模板
代数狂人1 小时前
Java泛型深度解析(JDK23)
java·开发语言
遗憾皆是温柔1 小时前
JavaFX - 3D 形状
java·开发语言·ide·学习·3d
美味小鱼3 小时前
Rust场景示例:为什么要使用切片类型
开发语言·rust
LUCIAZZZ4 小时前
手写单例模式
java·开发语言·spring boot·单例模式
程序员东min5 小时前
C++:抽象类习题
开发语言·c++
行路见知9 小时前
1.5 Go切片使用
开发语言·golang
子燕若水11 小时前
uv 安装包
开发语言·chrome·python
不会打代码呜呜呜呜12 小时前
小白零基础--CPP多线程
开发语言·c++·算法