2013-02-27 36 views
4

,當我嘗試使用cocoapods安裝Nimbus我得到以下錯誤:[!] Nimbus (1.0.0) is not compatible with iOS 4.3.雨雲不與iOS 4.3兼容使用的CocoaPods

我不知道這個地方的iOS 4.3是從哪裏來的..但這裏有一些更多的細節:

我Podfile內容:

platform :ios 

pod 'AFNetworking', '0.9.1' 

pod 'SSToolkit' 
pod 'ConciseKit' 
pod 'Nimbus' 

當我運行pod install我得到:

warning: Insecure world writable dir /usr/local in PATH, mode 040777 
warning: Insecure world writable dir /usr/local in PATH, mode 040777 
Resolving dependencies of `./Podfile' 
Updating spec repositories 

Cocoapods 0.17.0.rc1 is available. 

Resolving dependencies for target `default' (iOS 4.3) 
[!] Nimbus (1.0.0) is not compatible with iOS 4.3. 

想法?

回答

25

當你不定義的iOS版本,4.3被假定爲通過的CocoaPods

例如默認的,如果你定義Podfile如下platform :ios, '5.0'最小的iOS版本,爲你,項目將是5.0

在你情況下,這意味着Nimbus的iOS版本號被定義爲其podspec中的最小值。根據項目的最低目標更新您的Podfile以支持更高版本,或者檢查是否雨雲的先前版本與iOS 4.3

用於定義一個吊艙使用pod 'Nimbus', '0.X.Y'特定版本兼容,其中X和Y是版本號

+0

這是正確的答案。 – Peres 2013-02-27 14:00:52

+1

Cocoapods'0.17rc1'中的這一點已經改變了,它可以用'gem install cocoapods --pre'來安裝,它取代了你的項目的默認版本。 – 2013-02-27 15:06:42

+1

如何更新我的cocoapods版本? – abbood 2013-03-01 03:52:33

-1

在您的pod文件中替換平臺:ios with platform:ios,'7.1'