报错:
[!] Pods written in Swift can only be integrated as frameworks; add `use_frameworks!` to your Podfile or target to opt into using it. The Swift Pod being used is: SnapKit
更改podfile文件:
在podfile文件中指定项目的运行平台最低版本:platform:ios, '8.0'
加入“use_frameworks!”
做了以上操作之后再pod install一下,就能成功安装snapkit了。

本篇文章到这里就结束了,愿大家加班不多工资多,男同胞都有女朋友,女同胞都有男朋友。😊
补充:
既然提到了SnapKit,这里就简单介绍下SnapKit的使用。
大家如果熟练使用Masonry,那么上手SnapKit也会容易的多,因为这两个库的创造者是同一个人,语法也类似,看代码:

网友评论