小貼士:註冊CocoaPods賬戶信息:使用如下命令
pod trunk register 郵箱地址 '用戶名' --verbose
- 命令行執行獲取密碼
grep -A2 'trunk.cocoapods.org' ~/.netrc
會得到如下結果:
machine trunk.cocoapods.org
login yao@qq.com
password 6c339fa4de26d2a2d4f4df6785e190110
- 執行如下命令,替換你的信息
curl -v -H "Authorization: Token 6c339fadd4de26d2a2d4f4df6785e1909a" -H "Content-Type: application/json" -X POST -d '{"email":"[email protected]","name":"newName","description":"just do it"}' https://trunk.cocoapods.org/api/v1/sessions
出現如下結果代表成功
{"created_at":"2019-07-23 13:45:38 UTC","valid_until":"2019-11-28 13:45:38 UTC","verified":false,"created_from_ip":"60.182.63.53","description":"just do it","token":"642e1febb13ddaeadd75fd82b4e26fb059"}
- 執行如命令查看是否修改成功:
pod trunk me
結果如下:
- Name: newName
- Email: test@qq.com
- Since: July 22nd, 03:26
- Pods:
- xxxxxxPods
- Sessions:
- July 22nd, 03:26 - November 27th, 03:26. IP: 190.227.61.21