Small command line tool to statically analyze your Swinject container usage.
Basically it tries to ensure that the types you try to resolve
are also register
ed somewhere.
Example warning:
SwinjectContainerAnalyzer /Path/To/Code --strict
The --strict
flag will result in Xcode to fail the build. Leave it out if you only want the comments.
To me it makes the most sense to have it as a custom build phase in Xcode.
- Download latest release
- Put in desired location
- Add build phase in Xcode (make sure that SwinjectContainerAnalyzer is executable)
- Build your code