Skip to content

Commit

Permalink
doc: Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Oct 13, 2020
1 parent 5103b88 commit 57b6477
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,22 @@ pod 'GMObjC','3.0.0'
```bash
# 检查.podspec及代码是否有错误,如果有错误不能提交
pod spec lint MapManagerReportLocation.podspec --verbose
```

Repo 添加成功后你可以在 `~/.cocoapods/repos/` 目录下找到和你建立的 `spec repo` 同名的文件夹。

```bash
pod repo add MapManagerReportLocation https://github.com/jaywcjlove/map-manager-report-location.git
```

Repo 添加成功后你可以在 `~/.cocoapods/repos/` 目录下找到和你建立的 `spec repo` 同名的文件夹。然后你就需要 `cd` 到你存放需要添加的 `spec` 文件的目录下将它 `push` 到远程端仓库中。
然后你就需要 `cd` 到你存放需要添加的 `spec` 文件的目录下将它 `push` 到远程端仓库中。

```bash
pod repo push MapManagerReportLocation MapManagerReportLocation.podspec
```

发布到 [Cocoapods](https://cocoapods.org/) 官方库中

```bash
pod trunk push MapManagerReportLocation.podspec --allow-warnings
```

0 comments on commit 57b6477

Please sign in to comment.