krzyzanowskim / Natalie

Natalie - Storyboard Code Generator (for Swift)
http://blog.krzyzanowskim.com/2015/04/15/natalie-storyboard-code-generator/
MIT License
1.17k stars 74 forks source link

Swift 4 issue in console #105

Closed Den-Ree closed 6 years ago

Den-Ree commented 6 years ago

Hi, @krzyzanowskim) thanks for the lib, after migrating on Swift 4, I have this issue:

*** ......../Storyboards/Storyboards.swift:535:5: implicit Objective-C entrypoint -[VIEW CONTROLLER CLASS NAME storyboardIdentifier] is deprecated and will be removed in Swift 4; add explicit '@objc' to the declaration to emit the Objective-C entrypoint in Swift 4 and suppress this message

Do you know how to fix it?

krzyzanowskim commented 6 years ago

Closing as duplicate https://github.com/krzyzanowskim/Natalie/issues/106

phimage commented 6 years ago

I think it's not the same issue

Here the code generated by Natalie is not fully compatible with swift 4

TODO

phimage commented 6 years ago

https://github.com/phimage/Natalie/commit/1c746ddaf05952092cbe9c073563bb11c4879be0 ( https://github.com/phimage/Natalie/tree/feature/swift4 ) I have some test to do before PR

phimage commented 6 years ago

@Den-Ree in build settings your Swift 3 @objc Inference is set to Defaults, On or Off? And If you change, something change on warning?

krzyzanowskim commented 6 years ago

I just released 0.6.0

Den-Ree commented 6 years ago

@krzyzanowskim thanks.