krzysztofzablocki / Inject

Hot Reloading for Swift applications!
MIT License
2.1k stars 114 forks source link

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

Closed RodrigoIbarraSanchez closed 3 months ago

RodrigoIbarraSanchez commented 4 months ago

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 commented 4 months ago

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

krzysztofzablocki commented 4 months ago

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

krris commented 3 months ago

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 commented 3 months ago

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