微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

iOS:自定义组件化模板pod-template

一、介绍

官方提供的pod-template,流程太繁琐了,不停的询问输入问题的答案,而且创建的目录,本人很不喜欢。为了提高组件化开发效率,我修改了官方的脚本和源码,很方便的创建Objective项目和Swift项目,创建方式不变,只需要添加一个参数和修改template URL即可。

  

二、用法

 ## English:

0. First enter any of your own directories.

1. Create OC private components in this directory: pod lib create ProjectName Objc --template-url="https://github.com/xiayuanquan/pod-template"

2. Create Swift private components in this directory: pod lib create ProjectName Swift --template-url="https://github.com/xiayuanquan/pod-template"

3. Objc and Swift are not case sensitive.

 

## 中文

0. 首先进入到自己的任意一个目录。

1. 在该目录创建OC私有组件:pod lib create ProjectName Objc --template-url="https://github.com/xiayuanquan/pod-template"

2. 在该目录创建Swift私有组件:pod lib create ProjectName Swift --template-url="https://github.com/xiayuanquan/pod-template"

3. Objc 和 Swift 不用区分大小写。

 

三、截图

## OC

 

## Swift

 

 

 

四、地址

github:https://github.com/xiayuanquan/pod-template

 

 

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐