2017-07-26 25 views
0

我有一個項目,我添加了alamofire之前,但現在當我想添加另一個我看到它是用alamofire替換新的,我應該如何避免?Cocoapods:添加一個新的莢而不替換現有的莢

source 'https://github.com/CocoaPods/Specs.git' 
platform :ios, '9.0' 
use_frameworks! 

target 'WeatherApp' do 
    pod 'TextFieldEffects', 
    :git => 'https://github.com/raulriera/TextFieldEffects.git' 
end 

和結果是

去除alamofire並安裝TextFieldEffects

回答

0

試試這個

source 'https://github.com/CocoaPods/Specs.git' 
platform :ios, 「9.0」 
use_frameworks! 

target 'WeatherApp' do 
pod 'TextFieldEffects', :git =>'https://github.com/raulriera/TextFieldEffects.git' 
pod 'Alamofire', :git => 'https://github.com/Alamofire/Alamofire.git' 
end 

甚至可以這樣:

source 'https://github.com/CocoaPods/Specs.git' 
platform :ios, '9.0' 
use_frameworks! 

target 'WeatherApp' do 
    pod 'TextFieldEffects' 
    pod 'Alamofire' 
end 
相關問題