-
-
Notifications
You must be signed in to change notification settings - Fork 197
Add support for iOS Wifi connections #4252
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
Comments
This comment was marked as abuse.
This comment was marked as abuse.
Hey @NathanaelA , NativeScript CLI relies on iTunes binaries and methods to detect and work with iOS devices. This implementation allows us to work with iOS devices on both macOS and Windows (where iTunes binaries are available). So, whenever CLI process needs to execute some action with iOS devices or search for them, it calls some iTunes methods. As the binaries are not in JavaScript, we have implemented our own library with binary executable, which we use as a wrapper for the iTunes methods. This library is ios-device-lib. As you can see - it has JavaScript part that starts a binary executable (the source code of the executable is also in the repo) and communication between the JavaScript and the binary is through messages on stdout. NativeScript CLI consumes the One really specific thing that I would like to mention is the device detection - when the Hope this gives enough information for starting the research. Ping me in case you have any other questions. |
Any luck with implementing this? Or perhaps some workarounds? I was thinking to write a small utility script, to be executed after the build is complete, to use Xcode’s libraries to deploy automatically. My worry however is that this wouldn’t have any luck with the live reloading / hot updates etc. 🤔 |
I am running Mac OS in VM Ware and as soon as I plug an iDevice, the device crashes and also the VM Crashes. This feature could really be a life saver for me (and other people in the same situation). |
@ibnYursat that probably still wouldn’t help you much. To test, open a project in Xcode and try using xcode’s WiFi deployment - my bet is, it would need direct access to device anyhow. |
Actually I am able to deploy using X-Code. The crashing happens only when the VM is running under Linux, on Windows the USB connection works just fine, but I am a little bit uncomfortable with Windows and have it installed as a secondary OS to be used only in case of extreme compulsion. So currently I am able to hit the 'run' button in X-Code and deploy the project on iPad or any iDevice for that matter. Problem is that there is no livesync. And to see updates, we have to build the project again and then run it. |
What I was referring to, is not the simple xcode deployment, but the "wifi deployment from xcode" Did you test deploying wirelessly from xcode directly? I got the impression you only confirmed See this article for guidance: https://codeburst.io/wireless-debugging-ios-run-debug-install-builds-over-wifi-a48fc49ac3a7?gi=6ddab274acfb
|
I am sorry I don't think I was explicit there. Please let me explain. I have dual booted Windows and Ubuntu. I have VM Ware installed on both operating systems. On Windows, if I connect any iDevice via USB to the VM, it works. And I am able to deploy on it. But if I connect an iPhone or iPad to the VM in Ubuntu, the VM Crashes and the iPhone also crashes (simply reboots as soon as its unplugged). So the solution I found was Wifi deployment. I configured it by logging into Windows for once > plugging the device > Checked Ideally if |
I see @ibnYusrat, makes sense now! I'm not sure what and when we can expect on this, knowing some features take years to get to implementation. For your case, I'll suggest looking into alternative drivers, for both your Ubuntu installation, as well as the VM inside. I'm pretty sure you'll find some to try. |
Is your feature request related to a problem? Please describe.
In current versions of iOS and xCode you can pair your device using Wifi; meaning you no longer need to use a USB cable. NativeScript can't seem to use this pairing; even thought xcode can.
Describe the solution you'd like
Ability to use WiFi connection for debug/install.
Describe alternatives you've considered
using Xcode. (its a pain, as you have to build via command line first, then use xcode to do everything. Any changes to JS has to be replicated back to the original folder from the platforms copy that xcode is using)
The text was updated successfully, but these errors were encountered: