Xcode9 wireless debugging doesn't connect on the university network - ios

I've been trying to use wireless debugging on Xcode9 on the network as it'd be pretty useful to have for a project I'm working on, and it connects normally to my home network. However, when I try this on the university network to work on my project it doesn't seem to connect at all. I've tried resetting the Location & Privacy Settings on the iPad, resetting the Network Settings, unpairing the device, and restarting both the Mac and the iPad to no effect.
No network connection
I can confirm that both the iPad and the Mac are connected to the same university network.
Using:
macOS Sierra 10.12.6 (Macbook Pro)
XCode 9.0
iOS 11.0

There is one thing I tried when I had the similar problem as you have:
1) Try connecting to your iPhone or iPad by specifying its IP Address.
Let me know if that works for you.
Once, I was able to connect to my iPhone in the university network by doing that. But then I lost the connection after 20-30 minutes. After that, I was not able to connect with my device by using its IP address there. Maybe it has something to do with the network configuration as the network is public, but not sure.

Related

iOS Swift: find Macbook Computer Name/Ip Address on connected Iphone

For local development, I was hoping to programmatically get the computer name or ip address of the macbook my iphone is connected to. I've been looking at hostess; however, it seems to only provide my iphone's ip address. Is this possible?
Thanks so much for the help!
Dave
What I've experienced is that if you're building an Xcode project on an iOS device, and then run the project with the debugger attached, it routes all of the iOS device's networking through your computer. So it will only show your computer's IP address, not the device's. It looks in the debugger as if that's your iPhone's networking info, but it's really your computer's.

Connect Iphone using Wireless not working

I recently updated to IOS 11 and Xcode 9. Am trying to explore the option of connecting my phone over wifi with xcode for development. My mac and IPhone are both connected to same wifi (corporate network). I have selected the option for connecting my iphone over a network but as mentioned in the WWDC talk, https://developer.apple.com/videos/play/wwdc2017/404, there is not globe icon showing next to my device and consequently if i disconnect my iphone from usb it gives me lost connection error.
Few of device details:
Mac OS : 10.12.6 (16G29)
IPhone : 6S running IOS (1115A372)
XCode : Version 9.0 (9A235)
Am i missing some step or is there a gap in implementation here ?
Posted same question on Apple Developer forum at https://forums.developer.apple.com/message/261911
You have to connect your iPhone via USB for the first time once to Xcode wait till Xcode finishes processing. Now you can click on your device name at the top
it will open the a list of simulators and your currently connected devices
Select the add additional simulators
Make sure that you have selected the Devices tab not Simulator also if you have multiple devices connected to your Xcode at the same time make sure to select the device you want to be connected view network in the left pan first.
Also you have to make sure that both your Computer and iPhone are both connected to the same network.
Now check the check mark for the Connect via Network
Close the current window and remove the USB cable click on build it should build your project through network.
Note: Building through network very slow.
update:
Please see the glob icon your looking for in the image below
So i guess i figured this out. This feature works from my home wifi but not if both of my devices are on my corporate network. Also, as khalid mentioned the installing of app when connected via wifi, is painfully slow compared to USB option. Maybe could use usb to transfer the application and then move to wifi to debug.

Xcode 9 Wireless debugging not working

For some reason the wireless debugging does not work here. Here is what I've done:
Using newest Xcode 9
Using newest iOS 11 on my iPhone 7+
Both devices are in the same network
Connected the iPhone via Lightning, selected "Connect via Network" in the Devices & Simulator menu
Run an app on the iPhone while still connected via Lightning - everything works
But as soon as I unplug the phone, Xcode is no longer able to connect with the phone. I can ping the phone with the Mac, but even the "connect via ip" option in Xcode does not work.
Anybody got tips on how to get this working?
I had the same issue, but it was intermittent - i.e. sometimes the globe would not appear next to the phone name in Xcode Devices and Simulators window and when the phone was disconnected from the lighting cable, I could not debug to it from Xcode. My fix was much simpler, though - I just turned WiFi on and off both on the Mac and on the phone. After the devices reconnected to the network wireless debugging was available again. This seems to be an issue with the network communication (regardless whether the device can be pinged or not).
Make sure System Preferences->Internet Sharing is enabled using USB ports:
I was able to find a solution to this on another stack overflow question:
How do you perform wireless debugging in Xcode 9 with iOS 11, Apple TV 4K, etc?.
You can also check this answer: "Connect via network" wireless debugging not working Xcode 9
Near the bottom, from "IOS DEV". Briefly, the solution ended up to be to unpair my phone, disconnect and re-pair. After that Xcode automatically added it with the globe. As an FYI, I was able to ping my iPhone using the network utility prior to the un-paring but was still unable to get the phone to connect. good luck.
Restarting xcode is the only thing that fixed this intermittent connectivity problem for me.
I realized this can also happen if my Mac is connected to a VPN. I had to:
Kill the VPN connection
Turn the computer's wifi off and back on
Open Devices and Simulators
Plug the device in and the globe icon should appear.
Unplug the device and make sure the globe icon is still there.
Run the app via network!
Wireless debugging mysteriously stopped working for me until I turned off my VPN client. I now believe that I had the VPN turned off when I was trying it out the first time, but then the VPN auto-connected after my computer restarted sometime later.

Run app in iOS simulator with VPN connection

I want to run my app in iOS simulator with VPN.
My mac is connected to a VPN network, i want to run my app in simulator, is this possible.
Please help.
If your VPN is "L2TP over IPSec", just need to make sure you've checked "Send all traffic over VPN connection" in System Preferences / Network / YourVPN / Advanced:
The answered marked as correct works but you need to start/restart the simulator once you are successfully connected to the VPN.
I make this comment in order to avoid what happened to me. I spend a day trying to making vodo magic and at the end the solution was just restarting the simulator.
Yes it is possible and i have already worked on iOS simulator with VPN connection. Basically you don't have to install or make any changes for this.
When you connect to VPN on Mac you can browser the sites or system to which you are VPN connected. Since iOS simulator uses your Mac's connection it will also be able to connect to the VPN network.

iOS Simulator unable to get connection over ethernet

I've previously bought a MacPro which come with ethernet port and also wifi adapter. I've my wifi turned off and the ethernet port connected with an intranet network cable.
However in my simulator, it keeps showing the error of having NO connection (my Mac can connect to intranet resources perfectly). Fyi, I also noticed that my Mac connection icon was a empty wifi icon, which it means I don't have connection? I just wan my Mac to default to ethernet connection, and my iOS simulator should be able to connect to intranet as expected.
Any help please?
iOS simulator uses the same network interface what your MAC is supporting at present.
"I also noticed that my Mac connection icon was a empty wifi icon" It means Wifi is turned off… It doesn't mean that you don't have connection.
Let me know if more info needed.. :)

Resources