终端命令集合

iOS 使用Cocoapods封装代码

2019-05-10  本文已影响0人  DoflaKaiGo

试着做了下 自己在 Cocoapods 封装代码,下面是记录

 spec.name  = "项目名字"

 spec.version = "1.0.0" (和仓库 tag 相同)

 spec.description = <<-DESC

 this is cocoapods test (分三行,内容写中间)

 DESC

 spec.homepage  = "[https://github.com/DoflaKaiGo/(https://github.com/DoflaKaiGo/)   

 XlXLog.git"(远程仓库地址)

 spec.license = "MIT" (自动生成)

 spec.author  = { "DoflaKaiGo" =>"[luxiaokaii@163.com](mailto:luxiaokaii@163.com)" }

 spec.source  = { :git => "远程地址", :tag=>spec.version }

 spec.source_files = "ChainList" 文件夹名称

合理使用cocoapods 封装framework 功能组件能有效减少代码耦合

上一篇 下一篇

猜你喜欢

热点阅读