evgenyneu / Cosmos

A star rating control for iOS/tvOS written in Swift
MIT License
2.19k stars 368 forks source link

Swift 3.2 could not build #78

Closed Jinkeycode closed 6 years ago

Jinkeycode commented 7 years ago

Swift 3.2 could not build

evgenyneu commented 7 years ago

Thanks for reporting. Did Xcode show any error messages? Those would be useful for me to investigate your problem.

matt-lebl commented 7 years ago

I am also having an issue with Swift 3.2

It's having this error: Incorrect argument label in call (have 'withAttributes:', expected 'attributes:')

On line 7 in CosmosLayerHelper.swift

evgenyneu commented 7 years ago

Hi @blerchy, it looks like your Swift Language Version in your Build Settings is set to 3 but you are using the recent version of Cosmos which is in Swift 4. If that's true, I would suggest changing the swift version to 4 or using the previous version of Cosmos.

matt-lebl commented 7 years ago

@evgenyneu Oops, that's a rookie mistake! Thanks so much for your help.

evgenyneu commented 7 years ago

It's alright, I'm glad it's sorted. :)

evgenyneu commented 6 years ago

Closing the issue. Feel free to reopen if needed.