報錯:
[!] 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了蕾殴。
podfile文件
本篇文章到這里就結束了士飒,愿大家加班不多工資多趾浅,男同胞都有女朋友喊暖,女同胞都有男朋友试伙。??
補充:
既然提到了SnapKit姚淆,這里就簡單介紹下SnapKit的使用兽愤。
大家如果熟練使用Masonry彼念,那么上手SnapKit也會容易的多,因為這兩個庫的創(chuàng)造者是同一個人烹看,語法也類似国拇,看代碼:
SnapKit的簡單使用