Open pinchukvd opened 7 years ago
Your code looks correct from first sight.
Try something of this:
1) Try to not override operationsAssembly setter.
2) Make sure that operationsAssembly
property exists (not only setter/getter)
3) try to inject setOperationsAssembly
via methodInjection instead
4) try latest version with
pod 'Typhoon', :git => 'https://github.com/appsquickly/Typhoon.git', :branch => 'v4'
Tried first three and still getting nil. With v4 got problems with manual activation. Getting TyphoonAssemblyAccessor instead of MainVCAssembly instance
MainVCAssembly *assembly=(MainVCAssembly*)[[self.controllersAssembly activated] mainViewControllerAssembly];
threfore it's unrecognized selector sent to instance
Getting TyphoonAssemblyAccessor instead of MainVCAssembly instance
That's ok
threfore it's unrecognized selector sent to instance
Because you should pass collaborating assemblies inside activation. See activateWithCollaboratingAssemblies
for reference
Ah, you are right regarding "threfore it's unrecognized selector sent to instance". Latest pull request broke that branch.
Hi I'm getting a nil property after injection. Here is my code:
UserDataServiceImplementation is injected successfuly. But when injecting an operationsAssembly in userDataService
i'm getting a nil in setter