The pod-template officially provided is too cumbersome. I keep asking for answers to the input questions, and I don’t like the created directory. In order to improve the efficiency of component-based development, I modified the official scripts and source code to easily create Objective projects and Swift projects. The creation method remains the same. You only need to add a parameter and template URL.
官方提供的pod-template,流程太繁琐了,不停的询问输入问题的答案,而且创建的目录,本人很不喜欢。为了提高组件化开发效率,我修改了官方的脚本和源码,很方便的创建Objective项目和Swift项目,创建方式不变,只需要添加一个参数和修改template URL即可。
-
First enter any of your own directories.
-
Create OC private components in this directory: pod lib create ProjectName Objc --template-url="https://github.com/xiayuanquan/pod-template"
-
Create Swift private components in this directory: pod lib create ProjectName Swift --template-url="https://github.com/xiayuanquan/pod-template"
-
Objc and Swift are not case sensitive.
-
首先进入到自己的任意一个目录。
-
在该目录创建OC私有组件:pod lib create ProjectName Objc --template-url="https://github.com/xiayuanquan/pod-template"
-
在该目录创建Swift私有组件:pod lib create ProjectName Swift --template-url="https://github.com/xiayuanquan/pod-template"
-
Objc 和 Swift 不用区分大小写。