Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swift Compiler Error after updating to Swift 4 #21

Open
lucamicheli opened this issue Nov 23, 2017 · 3 comments
Open

Swift Compiler Error after updating to Swift 4 #21

lucamicheli opened this issue Nov 23, 2017 · 3 comments

Comments

@lucamicheli
Copy link

I've encountered some compiler error after upgrading to Swift 4.
Xcode Version 9.1

Pods/Hokusai/Classes/Hokusai.swift:186:65: Argument of '#selector' refers to instance method 'tick' that is not exposed to Objective-C

Pods/Hokusai/Classes/Hokusai.swift:285:64: Argument of '#selector' refers to instance method 'onOrientationChange' that is not exposed to Objective-C

/Pods/Hokusai/Classes/Hokusai.swift:353:36: Argument of '#selector' refers to instance method 'buttonTapped' that is not exposed to Objective-C

And counting...How can fix this?

Thanks in advance

@dnadri
Copy link

dnadri commented Mar 20, 2018

@lucamicheli did you find a fix for this?

@lucamicheli
Copy link
Author

Unfortunately not.

@dnadri
Copy link

dnadri commented Mar 20, 2018

@lucamicheli thanks.
@ytakzk is there a fix for this?

Based on my research, adding '@objc' would expose these instance methods to Objective-C and I see that in the Hokusai.swift file of your latest Hokusai version (0.4.0) you have those @objc attributes. However, when I install this latest pod via Cocoapods, I do not see these attributes in the Hokusai file. Can you please help with this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants