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

Injection not working in Xcode 9 and Swift 4 #72

Closed
charles-oder opened this issue Sep 15, 2017 · 3 comments
Closed

Injection not working in Xcode 9 and Swift 4 #72

charles-oder opened this issue Sep 15, 2017 · 3 comments

Comments

@charles-oder
Copy link

I have recently upgraded a project to Xcode 9 and Swift 4.

The SwinjectStoryboard.setup() method is no longer firing.

also, UIViewControllers are not invoking their associated storyboardInitCompleted calls

@Sega-Zero
Copy link

@charles-oder, declare your setup method with @objc, it is mandatory in swift 4:

@objc class func setup() {

@yoichitgy, I believe, we need to update the docs mentioning that

@charles-oder
Copy link
Author

Yep, that fixed it, thanks!

@yoichitgy
Copy link
Member

Thanks @Sega-Zero👍 I updated README: d727183

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

3 participants