2013-11-15 34 views
0

我的podfile有問題。我需要AFNetworking 2.0 & AFOAuth2Client的一個分支,它考慮AFNetworking 2.0中所做的更改。Cocoapods&分叉項目(AFOauth2Client)

這是我莢文件

pod 'AFNetworking' 
pod 'AFOAuth2Client’, :git => ‘https://github.com/mlwelles/AFOAuth2Client.git' 

的問題是,我得到一個錯誤:[!]

無法找到一個規範AFOAuth2Client’, :git => ‘https://github.com/mlwelles/AFOAuth2Client.git

fork在repo中有.podspec文件,所以我不知道問題是什麼。

回答

1

這似乎是在的CocoaPods的錯誤,你應該打開一個issue mentioning this

同時你可以這樣做:

pod 'AFNetworking' 
pod 'AFOAuth2Client', :podspec => 'https://raw.github.com/mlwelles/AFOAuth2Client/master/AFOAuth2Client.podspec' 

不過請注意,你應該更新你的叉子podspec。當前的規範指向原始的回購,並將AFNetworking 1.0列爲依賴項。

+0

我按照您的建議創建了新問題。 : – foFox