Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用use_modular_headers! 打包Swift生成的静态库没有module文件,Swift无法调用生成的静态库 #195

Open
HuiYouHua opened this issue Jan 13, 2022 · 1 comment

Comments

@HuiYouHua
Copy link

我通过在podfile 中声明使用 use_modular_headers!
进行 SwifterSwift 的静态库打包
在将源码切换成二进制后
在主工程中无法通过 import SwifterSwift 进行调用该库

发现生成静态库时没有 SwifterSwift.modulemap 文件

这是cocoapods-imy-bin 生成的静态库
image

这是Cocoapods编译生成静态库
image

@menttofly
Copy link

目测打包用的脚手架工程没有开启 use_modular_headers 参数

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants