3
votes

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

Not seeing Globe icon

2
I see the device and the app launches but debugger loses connection. "lost connection", so I cant debug.Sajjon

2 Answers

1
votes

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 enter image description here

it will open the a list of simulators and your currently connected devices enter image description here

Select the add additional simulators

enter image description here

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

enter image description here

0
votes

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.