-
-
Notifications
You must be signed in to change notification settings - Fork 50
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
Cannot use HotReloading with Other debug configurations (ex. Dev, Test Configuration) #82
Comments
Hi @johnno1962 Thank you for your response. Of course, I added it. If you want the sample project, I can attach it. |
Well, I guess it's just Xcode having a bad day. The other alternative is to download the app and use one of the prebuilt bundles (it's all the same code) provided you're not trying to inject on a device. #if DEBUG
Bundle(path: "/Applications/InjectionIII.app/Contents/Resources/iOSInjection.bundle")?.load()
//for tvOS:
Bundle(path: "/Applications/InjectionIII.app/Contents/Resources/tvOSInjection.bundle")?.load()
//Or for macOS:
Bundle(path: "/Applications/InjectionIII.app/Contents/Resources/macOSInjection.bundle")?.load()
#endif I'll see if I can replicate it and get to the bottom of what's going on. |
This may be a silly question but how do you create a new configuration again? |
Thanks for that, very strange though, I can't replicate the problem. Any chance of a small test project? |
Did you change your scheme's configuration also? If you are using a scheme with debug configuration, Could you change the configuration into a new one? Here is the sample project. |
I also try to find out what is the problem. |
Thanks for the sample project. It's an Xcode problem where it's not building the HotReloading package with -DDEBUG etc for anything other than a |
Okay. I will report it through Feedback Assistant. I'll report it and keep track of what's going on in this thread. |
Thanks for that and reporting this issue. It's interesting to know but I'm afraid there isn't much I can do about it. Can you put a link to this thread in the FB and post it's number here and perhaps I can bend someone's ear though I imagine they are pretty busy this time of year.. |
P.S. Seems like it compiles your packages for debugging (which is required for HotReloading to be enabled) if your configuration name contains the string |
Hello, I have a question.
When I use the HotReloading package with other configurations, the Injection does not start.
If I use a scheme that has "Test Configuration", I found that
BundleInjection
is not loaded and Injection doesn't start.The "Test Configuration" is just a copy of "Debug Configuration" and only the name is different.
You can reproduce this situation even with SwiftUI-Kit after adding a new configuration and a new scheme using the new configuration.
Is there any way to use other configuration other than
Debug
? (Of course, exceptRelease
)Thank you.
Related Issue:
#57 (comment)
The text was updated successfully, but these errors were encountered: