2014-12-26 72 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。