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 while injecting #79

Closed
pavm035 opened this issue Nov 18, 2018 · 6 comments
Closed

Crash while injecting #79

pavm035 opened this issue Nov 18, 2018 · 6 comments

Comments

@pavm035
Copy link

pavm035 commented Nov 18, 2018

MyProject/View/Bookmark/ItemBookmarkViewController.swift ***
objc[35468]: Class _TtC13MyProject26ItemBookmarkViewController is implemented in both ?? (0x7fea8302aa10) and ?? (0x7fea83b52010). One of the two will be used. Which one is undefined.
Injected 'MyProject.ItemBookmarkViewController'
screen shot 2018-11-18 at 9 54 12

@zenangst
Copy link
Collaborator

@pavm035 a bit unsure about this one, looks similar to #68.

@zenangst
Copy link
Collaborator

@pavm035 you think you could provide me with an example project so that I can reproduce this and work on a fix?

@pavm035
Copy link
Author

pavm035 commented Nov 24, 2018

@zenangst Sorry It's my actual product but in example project it works fine i wonder this may not work with generics and default parameters methods

@johnno1962
Copy link
Owner

johnno1962 commented Nov 24, 2018

Hi, try removing the “injected()” method on this class and using “INJECTION_BUNDLE_NOTIFICATION” instead. This disables the “sweep” for instances of classes being injected which is not always reliable.

@zenangst
Copy link
Collaborator

Hey @pavm035, could you try this new version of InjectionIII to see if it doesn't work better for you.

https://www.dropbox.com/s/7stoecnf6uubno1/InjectionIII%20-%201.4%20Preview%202.zip?dl=0

@lcl2539
Copy link

lcl2539 commented Dec 4, 2018

Hello,I have the same problem.
Use new version can solve it

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

4 participants