johnno1962 / InjectionIII

Re-write of Injection for Xcode in (mostly) Swift
MIT License
4.08k stars 319 forks source link

error: no such module 'FirebaseFirestoreInternalWrapper' #482

Closed lockieluke closed 8 months ago

lockieluke commented 9 months ago

I have a project that uses FirebaseFirestore whenever I make changes to my code when InjectionIII is running, it would complain about FirebaseFirestoreInternalWrapper being non-existent

The FirebaseFirestore module is only used in one file, I don't mind disabling hot reload for that particular file as I mostly just use hot reload for UI stuff

lockieluke commented 9 months ago

Currently using this to stop InjectionIII from complaining

// hacky way to get around "no such module: FirebaseFirestoreInternalWrapper" when hot reload is enabled
#if canImport(FirebaseFirestoreInternalWrapper)
import FirebaseFirestoreInternalWrapper
import FirebaseFirestore
#endif
johnno1962 commented 9 months ago

Hi, Good news you're found a way to get up and running. Without access to the specifics of your project (which sounds quite complex) there is a limited amount I can do this end..

lockieluke commented 9 months ago

would there be a way to disable hot reload for some files

johnno1962 commented 9 months ago

Other than not saving them or setting their permissions to be not writable? You can turn on/off the file watcher from the injection menu. When it is off you type ctrl-= to force the queued files through. There isn't a way to turn it off for individual files though.