-
-
Notifications
You must be signed in to change notification settings - Fork 331
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
Is this only works on the simulator? #533
Comments
It works on a device but it is more difficult to assemble all the pieces. Consult the README of this project along with that of the HotReloading project to connect. The first step is to set a default to open the app up for remote connections. The simplest method is to add a build phase to copy one of the pre-built bundles into your app as it says in the README. |
There is more information on debugging connecting over the network here: |
Do I have to use this package to debug on a real machine? According to the tutorial, I only added and executed the script, and then changed the settings. Is that not enough? |
The bundles contain the code that is in. the HotReloading project. Using the script + loading the bundle should be enough once you have sorted out the networking issues. |
Note that if you use the prebuilt bundles for on device injection the code to load the bundle I different: #if DEBUG
if let path = Bundle.main.path(forResource:
"iOSInjection", ofType: "bundle") ??
Bundle.main.path(forResource:
"macOSInjection", ofType: "bundle") {
Bundle(path: path)!.load()
}
#endif You'lll have to convert that into Objective-C though the classes used should be the same. |
hi,there!
Injection3 is worked on simulator now,
I want it work in my physical IOS device, but it seems cannot connect , there is no Injection log in the xcode console.
my current environment:
MACOS:15.1.1
Injection3: 5.0.5
IOS device: 18.0
Xcode: 16.2
The text was updated successfully, but these errors were encountered: