使用CocoaPods发布用Swift编写的安装pod

时间:2016-03-04 09:02:25

标签: swift 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`

你能帮我解决这个问题吗?这是我的podfile:

# 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

1 个答案:

答案 0 :(得分:2)

add use_frameworks! to the end of your Podfile like it tells you to