美文网首页
cocoapods 使用

cocoapods 使用

作者: 锋尚达人 | 来源:发表于2021-04-06 09:55 被阅读0次

一:cocoapods

    漫长过程,自行百度

二:修改第三库的源地址为 清华源地址:

 参考:  https://blog.csdn.net/pengyouyoupeng/article/details/103800347

(1)对于旧版的 CocoaPods 可以使用如下方法使用 tuna 的镜像:

$ pod repo remove master

$ pod repo add master https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git

$ pod repo update

(2)新版的 CocoaPods 不允许用pod repo add直接添加master库了,但是依然可以: 

$ cd ~/.cocoapods/repos

$ pod repo remove master

$ git clone https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git master

(3)最后进入自己的工程,在自己工程的podFile第一行加上:

source 'https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git'

第三:

常用第三方库 总结:

(1)图片:

SDWebImage

加载gif  YYWebImage

YYText

(2)网络请求

MJRefresh

AFNetworking

(3)推送:

JPush

JMessage

CocoaLumberjack

(4)bug 检测

Bugly

OpenSSL-for-iOS

(5)UI 布局

Masonry

(6)分享

mob_sharesdk

(7)弹窗

Toast

CWStatusBarNotification

(8)使用统计

友盟统计 UMCCommon

UMCAnalytics

(9)轮播图

SDCycleScrollView

(10)动画

lottie-ios

(11)分页菜单

SPPageMenu

相关文章

网友评论

      本文标题:cocoapods 使用

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