Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash when reload #58

Open
skrew opened this issue Feb 23, 2021 · 3 comments
Open

Crash when reload #58

skrew opened this issue Feb 23, 2021 · 3 comments

Comments

@skrew
Copy link

skrew commented Feb 23, 2021

I'm using a Child controller inserted in a view controller with all code needed (vc.addChild() (...))
I'd added the Injection.addViewController(self) command in viewDidLoad()

When i'm using injection, the app crash with

Thread 1: "child view controller:<xzy.TestTable: 0x7fb5cfc8d650> should have parent view controller:<UINavigationController: 0x7fb5d806fc00> but actual parent is:<xzy.VCAddServiceStep2: 0x7fb5f0043c00>" 

I don't understand this error message because the child is added on VCAddServiceStep2 and not on a UINavigationController

Any idea to fix this crash ?

@zenangst
Copy link
Owner

zenangst commented Mar 6, 2021

Hey @skrew, I'm a bit unsure actually. Have you tried the bundled version of Vaccine that is shipped together with InjectionIII?

@skrew
Copy link
Author

skrew commented Mar 12, 2021

Hi @zenangst, i'm using InjectionIII but it doesn't contain commands like Injection.addViewController(self) so i can't fine tuning the vaccine ?

@zenangst
Copy link
Owner

Ah, should probably have a look at that project and update the vaccine implementation inside the app/Swift package

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants