iOS开发中在swift项目中pod snapkit库时报错

报错:

[!] 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文件

本篇文章到这里就结束了,愿大家加班不多工资多,男同胞都有女朋友,女同胞都有男朋友。

猜你喜欢

转载自blog.csdn.net/u010105969/article/details/80074861