appsquickly / typhoon

Powerful dependency injection for Objective-C ✨✨ (https://PILGRIM.PH is the pure Swift successor to Typhoon!!)✨✨
https://pilgrim.ph
Apache License 2.0
2.7k stars 269 forks source link

Injecting-the-assembly-itself doesn't work #538

Closed Brain89 closed 6 years ago

Brain89 commented 7 years ago

Hello. It is unclear with v4 how to use Injecting-the-assembly-itself. I am now receiving such kind of error message *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[TyphoonAssemblyAccessor <getInstanceFromMyProject>:]: unrecognized selector sent to instance 0x610000244fe0'

jasperblues commented 6 years ago

This issue looks obsolete. @Brain89 in v4, you need to use self.assembly rather than _assembly