美文网首页
CocoaPods使用国内源

CocoaPods使用国内源

作者: 代码小王子 | 来源:发表于2022-06-23 15:19 被阅读0次
① $ cd ~/.cocoapods/repos 
② $ pod repo remove master
③ $ git clone https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git master

最后进入自己的工程,在自己工程的podFile第一行加上(要替换原来的source语句):

④ source 'https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git'
⑤ pod install

相关文章

网友评论

      本文标题:CocoaPods使用国内源

      本文链接:https://www.haomeiwen.com/subject/xtqmvrtx.html