使用 CocoaPods 安装用 Swift 编写的 pod 时出现问题

Issue installing pod written in Swift with CocoaPods

我正在尝试将 XLPagerTabStrip podfile 导入我的项目,但我不断收到以下错误:

Analyzing dependencies
Downloading dependencies
Using Stripe (6.0.1)
Using XLPagerTabStrip (4.0.1)
[!] 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: XLPagerTabStrip`

你能帮我解决这个问题吗?这是我的播客文件:

# Uncomment this line to define a global platform for your project
# platform :ios, '6.0'

pod 'Stripe'
pod 'XLPagerTabStrip'

target 'Flokk' do

end

target 'FlokkTests' do

end

use_frameworks! 添加到 Podfile 的末尾,就像它告诉您的那样