filipealva / PickerView

🔸 A customizable alternative to UIPickerView in Swift.
MIT License
527 stars 92 forks source link

Unexpected error on xcode 9 and ios 11. #32

Closed kunass2 closed 6 years ago

kunass2 commented 6 years ago
screen shot 2017-09-27 at 14 47 26

What can I do with this?;-)

fennoma-dfelix commented 6 years ago

Have you tried the suggestion of adding @objc?

filipealva commented 6 years ago

@kunass2 did you converted the project to Swift 4? If only happens with me if I do convert it to Swift 4 using the migration assistant of Xcode.

Since you can have it working on your Swift 4 project even without converting I would not recommend to convert the source code of PickerView to Swift 4, if you need to do that you'll have to deal with some issues caused by the migration assistant such as @objc notations removals

Another thing that maybe is causing it is if you're building the project with Xcode 8 and Xcode 9 without cleaning the DerivatedData folder, I had some weird issues when I did it.

neilt commented 6 years ago

I had the same problem when using installing via Podfile in Swift 4 project. The pod build target is getting set to Swift 4 by default. I had to manually change it back to Swift 3.2 to get my project to build.

To see this problem try to add PickerView pod to any swift 4 project.

filipealva commented 6 years ago

Sorry guys, I did not tried to install in a Swift 4 project. Thanks @neilt I was able to reproduce it after your comment.

Just released version 0.3.3 compatible with Swift 4 projects.

Let me know if everything is ok.

captura de tela 2017-10-03 as 10 46 04

kunass2 commented 6 years ago

Nice;) I will try it within houirs and let you know if everything is alright;-) good job

neilt commented 6 years ago

Seems to work here!

kunass2 commented 6 years ago

Works great;) 👍

filipealva commented 6 years ago

thanks guys