Documentation of the Needle dependency injection framework sucks, and most of articles teaching you how to use it are outdated. That's the reason why it's really hard to write even a minimal-working version of the code that compiles.
This is a simple example of RootComponent
that compiles successfully. Based on a code from an article "Dependency Injection with Needle", but modified to make it work.
- Go to your target
- Build Phases