2016-03-04 56 views
0

我试图导入XLPagerTabStrip podfile到我的项目,但我不断收到的错误:问题在安装荚写在斯威夫特用的CocoaPods

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 
+0

错误消息'''加'use_frameworks你Podfile'' ......应该给你一个提示。 –

+0

[使用swift运行pod安装时出错](https://stackoverflow.com/questions/29091522/error-running-pod-install-with-swift) –

回答

2

添加use_frameworks!您Podfile月底喜欢它告诉你