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

Module 'Inject' has no member named 'ViewControllerHost' #94

Closed
RodrigoIbarraSanchez opened this issue Apr 23, 2024 · 4 comments
Closed

Comments

@RodrigoIbarraSanchez
Copy link

RodrigoIbarraSanchez commented Apr 23, 2024

I'm using this version:
{ "identity" : "inject", "kind" : "remoteSourceControl", "location" : "https://github.com/krzysztofzablocki/Inject.git", "state" : { "branch" : "main", "revision" : "838e614220000a563bbaeba2974236f2c2c51e13" } }

but having errors using Inject.ViewControllerHost() and .never

Errors:
Module 'Inject' has no member named 'ViewControllerHost'
Cannot infer contextual base in reference to member 'never'

Any thoughts on why this happens on newer versions?

@RodrigoIbarraSanchez
Copy link
Author

I'm not having issues using the previous revision e91205e809f7bd7f6fc3f26fc0b5c1fbfaac20c6.

@krzysztofzablocki
Copy link
Owner

It was renamed for framework use, so just update your references

@krris
Copy link

krris commented May 24, 2024

I can confirm there's an issue with versions 1.5.0 and 1.4.0. I got the same error Module 'Inject' has no member named 'ViewControllerHost' when building a UIKit app with Release build configuration.

@krzysztofzablocki
Copy link
Owner

krzysztofzablocki commented May 24, 2024

It used to be under namespace, now it's just called ViewControllerHost or ViewHost

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

3 participants