draveness / DKNightVersion

Manage Colors, Integrate Night/Multiple Themes. (Unmaintained)
MIT License
3.55k stars 516 forks source link

Cocoa Pods重新pod install 后报错? #54

Closed penguin1214 closed 8 years ago

penguin1214 commented 8 years ago

之前可以正常编译运行,重新pod install后报错。 是版本更新的问题吗?按照readme的文档改了之后还是报错。

_backView.dk_backgroundColorPicker = DKColorWithColors(KCOLOR_YELLOW_FDF5D8, [UIColor colorWithRGBHex:0x343434]);

Implicit declaration of function 'DKColorWithColors' is invalid in C99

Implicit conversion of 'int' to 'DKColorPicker' (aka 'UIColor (^)(DKThemeVersion __strong)') is disallowed with ARC

Invalid block pointer conversion assigning to 'DKColorPicker' (aka 'UIColor (^)(DKThemeVersion __strong)') from 'int'

draveness commented 8 years ago

现在版本是最新的么

draveness commented 8 years ago

你把全局的 DKColorWithColors 改成 DKColorPickerWithColors,这里多加了一个 Picker 是为了保证语义上不会出问题

penguin1214 commented 8 years ago

谢谢,不报错了。不过我今天看到已经升级到2.3.1了,但pod install安装的还是2.3.0版本的。

draveness commented 8 years ago

你需要更新本地的 repo 了,不过影响也不是很大

Regards, Draveness

On 7 Jul 2016, 22:15 +0800, ぺんぺんnotifications@github.com, wrote:

谢谢,不报错了。不过我今天看到已经升级到2.3.1了,但pod install安装的还是2.3.0版本的。

— You are receiving this because you commented. Reply to this email directly,view it on GitHub(https://github.com/Draveness/DKNightVersion/issues/54#issuecomment-231090607), ormute the thread(https://github.com/notifications/unsubscribe/AGMUR9JztjUg5efadnEVVIVFFsi2g3o5ks5qTQobgaJpZM4JHEju).