cocoapods specs下载到本地
2024-04-09 本文已影响0人
summer_code
错误信息:
[!] Unable to add a source with url `https://github.com/CocoaPods/Specs.git` named `cocoapods`.
解决方案
1.找到cocoapods所在的路径.如果找不到,按command+⬆️+. 显示隐藏文件夹
2.使用终端查看真实路径
cd ~/.cocoapods/repos
3.执行如下命令
git clone https://github.com/CocoaPods/Specs.git master
4.过程较长,慢慢等待,成功后就可以了
5.看到下面这样的就算成功了
colliding group is in the working tree:
'Specs/1/2/b/VietIdSDK-iOS/1.4.7-Kenh14chat/VietIdSDK-iOS.podspec.json'
'Specs/1/2/b/VietIdSDK-iOS/1.4.7-kenh14chat/VietIdSDK-iOS.podspec.json'
'Specs/5/1/1/Governor/1.0.11-APPS-1582-beta11/Governor.podspec.json'
'Specs/5/1/1/Governor/1.0.11-apps-1582-beta11/Governor.podspec.json'