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

相关推荐
白拾5 分钟前
使用Conda管理python环境的指南
开发语言·python·conda
从0至131 分钟前
力扣刷题 | 两数之和
c语言·开发语言
总裁余(余登武)31 分钟前
算法竞赛(Python)-万变中的不变“随机算法”
开发语言·python·算法
NormalConfidence_Man32 分钟前
C++新特性汇总
开发语言·c++
一个闪现必杀技37 分钟前
Python练习2
开发语言·python
有梦想的咕噜1 小时前
target_link_libraries()
开发语言
liu_chunhai1 小时前
设计模式(3)builder
java·开发语言·设计模式
姜学迁1 小时前
Rust-枚举
开发语言·后端·rust
冷白白1 小时前
【C++】C++对象初探及友元
c语言·开发语言·c++·算法
凌云行者1 小时前
rust的迭代器方法——collect
开发语言·rust