1. 程式人生 > 其它 >iOS:自定義元件化模板pod-template

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

程式猿神奇的手,每時每刻,這雙手都在改變著世界的互動方式!