在使用cocoapod导入swift第三方时出现这样的错误:

[!] 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: 三方库名称

一开始我使用oc的配置方法

platform :ios, '8.0'
target '<Your App Name>' do 
pod 'MJRefresh' 
end

 结果报错了,后来通过翻译得知,只能是集成框架,需要添加“use_frameworks!”。更改后,如下:

platform :ios, '8.0'
use_frameworks! 

target '<Your App Name>' do 
pod 'MJRefresh' 
end

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-20
  • 2022-12-23
猜你喜欢
  • 2021-08-23
  • 2021-05-27
  • 2022-12-23
  • 2021-06-16
  • 2022-12-23
  • 2021-09-15
  • 2021-07-20
相关资源
相似解决方案