pod+module 管理代码

1、组织代码文件

2、podspec 文件和以前一样

3、在podfile文件中写入对应的

注意:我们是本地的文件,不是库,把use_frameworks!注释掉

使用 use_modular_headers! 就定义了组织成为模块

4、执行命令安装

5、导入这个模块使用

参考代码: https://github.com/hly-code-source/exmaples/tree/main/oc/TestModulearrow-up-right

Last updated