2016-06-08 58 views
0

我跟着智能react-native-ios-charts並更新到新版本的pod install莢不能指定版本以及

和我指定版本低於

use_frameworks! 

target 'MyApp' do 
    pod 'SwiftyJSON', '2.3.1' 
    pod 'Charts', '2.2.3' 
end 

但版本不正確總是像下面的輸出

Analyzing dependencies 
Downloading dependencies 
Installing Charts (2.2.4) 
Installing SwiftyJSON (2.3.2) 
Generating Pods project 
Integrating client project 

[!] Please close any current Xcode sessions and use `MyApp.xcworkspace` for this project from now on. 

Sending stats 

Pod installation complete! There are 2 dependencies from the Podfile and 2 total pods installed. 

我該如何解決它?

感謝您的時間。

+0

您運行的是哪種cocoapods版本? –

+0

@max_ pod version'1.0.0' –

+0

您是否嘗試過爲本項目解除整合cocoapods並重新安裝? 'gem install cocoapods-deintegrate;莢解體;乾淨的莢緩存' –

回答

0

這很奇怪。 Podfile正在凍結圖表和SwiftJSON窗格,正如文檔中所說的Specifying pod versions

我剛剛在ChartsExplorer中用這個Podfile react-native-ios-charts進行了測試,並且沒有問題。

這是日誌輸出。

Analyzing dependencies 
Downloading dependencies 
Installing Charts (2.2.3) 
Installing SwiftyJSON (2.3.1) 
Generating Pods project 
Integrating client project 
Sending stats 
Sending stats 
Pod installation complete! There are 2 dependencies from the Podfile and 2 total pods installed. 
相關問題