2014-12-26 71 views
0

我想用這個項目後,最新修訂:由於沒有采用吊艙

https://github.com/callumboddy/CBZSplashView

這是我的podfile。

target "Name" do 

#pod 'CBZSplashView', '> 0.1.1' 

end 

這是我所看到的:

Downloading dependencies 
Installing CBZSplashView (1.0.0) 
Generating Pods project 
Integrating client project 

但莢文件夾下的文件裏面,我沒有看到最新的代碼,但它爲我們帶來最新的版本(1.0.0)

例如,in Github under classes我看到的代碼不同於xcode中的代碼。

特別是在Xcode中我沒有看到這兩個類,這是後0.1.1

+ (instancetype)splashViewWithIcon:(UIImage *)icon backgroundColor:(UIColor *)backgroundColor 
{ 
    /* This component is useless without an icon */ 
    NSParameterAssert(icon); 

    return [[CBZRasterSplashView alloc] initWithIconImage:icon backgroundColor:backgroundColor]; 
} 

+ (instancetype)splashViewWithBezierPath:(UIBezierPath *)bezier backgroundColor:(UIColor *)backgroundColor 
{ 
    return [[CBZVectorSplashView alloc] initWithBezierPath:bezier backgroundColor:backgroundColor]; 
} 

添加有什麼事情我做錯了或GitHub的項目有一些問題?

回答

1

這裏的問題是作者自發布1.0.0版本以來沒有在回購中創建新標籤。如果您想使用回購協議中的最新提交,您可以指定:head選項,如here所述。

在你Podfile你可以使用:

pod "foo", ":head" 

然後,當你運行pod install回購將被克隆,它會使用最新的承諾。請注意,根據作者如何處理主控的穩定性,這可能很危險。此外,當您運行pod update時,它會自動移動到最新的提交,這可能會隨時破壞您的項目,因爲這不會遵循語義版本控制(儘管>也不會)。

您也可以提交issue,要求圖書館作者添加一個新標籤並推送新版本的podspec。