[!] The `master` repo is not a git repo.

[!] The `master` repo is not a git repo.

1、进入/users/你的用户名/.cocoapods/,删除master文件夹

2、pod setup

3,sudo xcode-select -switch /Applications/Xcode.app/

原文地址:https://www.cnblogs.com/guligei/p/4113380.html