开源项目支持CocoaPods

1打开GitHub登录

2.创建repository

3.

3.1创建工程 FirstGithubDemo

3.2 $cd 到工程文件

3.3创建 FirstGithubDemo.podspec 文件

  打开文件$ vim FirstGithubDemo.podspec (文本编辑也行)

4.

4.验证 

  FirstGithubDemo.podspec

pod spec lint FirstGithubDemo.podspec --allow-warnings

 

 $ 

pod trunk push FirstGithubDemo.podspec --allow-warnings

原文地址:https://www.cnblogs.com/tom2015010203/p/8310379.html