Swinject / SwinjectStoryboard

Swinject extension for automatic dependency injection via Storyboard
MIT License
268 stars 141 forks source link

setup method never been called in 2.2.2 and static linking in Cocoapods #168

Open Sega-Zero opened 2 years ago

Sega-Zero commented 2 years ago

Upgraded SwinjectStoryboard to 2.2.2 and suprisingly faced with trouble of setup method not being called at all, so all implicit injects are now not working. Also, XCode 13 warns me with this:

warning: (arm64) /path/to/project/Build/Products/Debug-iphoneos/SwinjectStoryboard/libSwinjectStoryboard.a(_SwinjectStoryboardBase(iOS-tvOS).o) unable to open object file: No such file or directory

Versions 2.2.0 and 2.2.1 works as expected with no warnings. With dynamic_frameworks setup method works fine.

JHeisecke commented 2 years ago

Having same issue here with:

My difference is that I don't get that warning

whendon commented 2 years ago

I am experiencing this issue in 2.2.0 (when I remove @objc from my extension class).

If I leave @objc on my extension class, I get this error: #173

BarredEwe commented 2 years ago

Could you try this? https://github.com/Swinject/SwinjectStoryboard/issues/173#issuecomment-1229026608

JHeisecke commented 1 year ago

@BarredEwe it's still not working