1.细分组件
-
细分下图中的Base和Category
cd Example pod install之后 编译报错 -
修改spec文件
提交新的代码
git add .
git commit -m "基础组件内部划分"
git pull
git push
git tag 0.2.0
- 验证新的spec文件
pod spec lint --verbose --allow-warnings
报错如上
看网上的解决方案是:前置声明 在.h中用@class
在.m中用import引入公有库的头文件
但是 依然lint不过 报错如常 没感觉到有🐱用
借鉴了这篇博客的做法
解决 Pod include of non-modular header inside framework module 错误
pod repo push LDSpaces LDBase.podspec --verbose --allow-warnings --use-libraries
由于依赖库是公有库 而制作的是私有库 所以podfile里的source有两个
如果现在只想使用组件中的一个子组件,那么在Podfile中可以写作如下所示