iOS – Run/Debug/Install builds over Wi-Fi
Asked Answered
A

16

127

We have iPad and iPhone devices, but short of wires. Is there any way that we can install/debug the builds over Wi-Fi in iOS?

I know the way in Android, but not of iOS.

Abad answered 23/5, 2014 at 10:44 Comment(4)
it's imposible new version of xcode. This feature is depreceated after xcode 4.3.Abreact
Right - just use testFlightApp.com (now owned by Apple!)Admiration
I am so surprised that more developers have not clamored for this. But I guess we sit on our arse and don't need to care whether a cable is plugged in to our iDevice or not.Avrom
Now it's possible with Xcode 9 look at this answerRoughdry
S
170

Now by using Xcode 9 and iOS 11 it is possible to run apps by using Wi-Fi.

Connect the iPhone via USB, go into the device window (Cmd-Shift-2), select your phone, and check the connect via network box.

More thorough instructions with screenshots here


Pre-Xcode 9 answer:

Over Wi-Fi installing and debugging of applications is not possible in iOS.

But there are some websites where you can upload your builds and then download on device and test it.

Slant answered 23/5, 2014 at 11:5 Comment(4)
I Think there was the provision for this in xcode 4.2Abad
2 yrs pass n still no... I wish they can add it, especially for my 12" macbook which doesnt have usb port...Worst
@indrajeet you can update your answer because of xcode 9Rosena
nice, to build wireless, first I need connect via wire *facepalmCorundum
D
21

(Before you read make sure your running IOS 11 and Xcode 9!) Connect your device (Via USB), once you do go on 'Add Additional Simulators' (See image 2 at the bottom), and tick 'connect via network' (See Image One). Once XCode proccesses this, disconnect the device (via USB) and it should now appear with a globe next to it (See image 2)! Also make sure the device and computer are on the same network!

Image 1 enter image description here

Image 2 enter image description here

Discomfit answered 6/6, 2017 at 18:50 Comment(3)
I don't see that option. Is this only possible on an iOS 11 device? I'm currently installing one, so I'll guess I'll find out soon enough!Malaise
Yea, requires the IOS 11 UpdateDiscomfit
You might want to include that in your answer!Malaise
P
8

Simple Solution: http://diawi.com

Upto Xcode 8 & iOS 10 : Through wifi its not possible.

You just upload your ".ipa" file to this website http://diawi.com & get sort link for that. After that install build by requesting that link in iphone browser.


From Xcode 9+ & iOS 11+ : Its possible install debug build through wifi.

  1. Open your project on Xcode
  2. Connect your ios device with USB cable.
  3. In xcode menu open Window -> Devices and Simulators or press (Cmd-Shift-2). You should see your device as connected devices.
  4. Select your device and enable check box “Connect via network”.
  5. Now you can see a network icon next to your phone name. This icon confirms that you can able to run build in wifi.
  6. Now run your build through wifi to install build in your ios devices.
Pyelonephritis answered 25/8, 2015 at 8:40 Comment(0)
R
8

Make sure you have at least Xcode 9 or later and a device with iOS 11 or later

1- Open your project on Xcode

2- Plugged in your iPhone with USB cable.

3- Open Window > Devices and Simulators enter image description here You should see your device as connected devices

4- Select Devices from the top, Select your device from left and Check the “Connect via network” box enter image description here

5- Now if Xcode can connect to your device via network, you should see a network icon after your phone name

enter image description here

6- Unplug your USB cord

7- Go back to Xcode and Hit the Run button

enter image description here

Revareval answered 16/9, 2017 at 5:11 Comment(1)
It is not working, when i removed usb cable from laptop and tried to run, it is showing error as iphone not connected.Franni
F
7

Using Xcode 9 you can debug over wifi(same network).

Frumentaceous answered 6/6, 2017 at 9:56 Comment(2)
Plug in your device, open Xcode, select Window > Devices and Simulators, select the device in the menu, and check "Connect via Network". Once it's connected, a globe-like icon should appear next to the device in the menu.Eanes
The question is about HOW to do the wireless connection.Buchan
S
5

To activate a Wireless Debugging for iOS device to Run|Debug|Install your builds over Wi-Fi, you need to take six steps:

  1. Connect a device via USB cable to the Mac with macOS 10.12.4+ and Xcode 9+ installed.

  2. Launch Xcode.

  3. Press Shift-Command-2 or go to Window-Devices and Simulators menu.

  4. In the Devices tab select the devices from the Connected section.

  5. Select the Connect via network checkbox (and wait for a few minutes when it's finished).

  6. Disconnect USB cable.

enter image description here

This Network icon in the left panel means – Wireless Debugging is OK.

enter image description here

On iPhone go to GeneralDevice ManagementApplication to trust and press TRUST.

Now you can Run | Debug | Install your builds over Wi-Fi.

Shyster answered 1/9, 2018 at 19:26 Comment(0)
I
5

To do this, connect your iOS device to your Mac using the appropriate USB cable, and select the Window tab in the menu bar, open the Devices and Simulators window by selecting Devices and Simulators from the Window dropdown or Cmd + Shift + 2.

Ensure that your device is selected in the list farthest to the left in the Devices and Simulators window. Check the Connect via network box.

enter image description here

If your device is on the same network as your Mac, you’ll see a globe appear next to your device’s name within a few moments. This indicates that your device is wirelessly connected.

You can now disconnect the USB cable connecting your device to your Mac, and build and run your app wirelessly.

Instalment answered 15/6, 2021 at 8:37 Comment(0)
B
4

For deployment/CI I have tried and highly recommend BuddyBuild solution, here is some of the many features it has:

  1. Excellent user help (chat/email) system and online service.
  2. Supports webhooks so that a build is started whenever you push to your App repository. (All Git source control repos supported)
  3. You can arrange system to auto send your builds to a preset list of testers/users whenever builds are ready.
  4. You can [Auto] integrate their SDK to allow user feedback and crash reports.
  5. It auto checks your app for compatibility with latest Xcode versions.
Banky answered 27/1, 2016 at 8:15 Comment(0)
F
2

Please check out this tutorial, http://honzadvorsky.com/articles/2015-10-21-17-40-xcode_server_tutorials_4_certificates__provisioning_profiles/

here you can find a way for "App Installation over Wi-Fi"

I have not get a chance to implement it yet, but may be will try it out asap. meanwhile if someone is free then can try and post their view here so others can get help. Thanks

Funkhouser answered 26/10, 2015 at 7:38 Comment(0)
H
2

Requirements: iOS 11 and XCode 9, iOS device and computer on same wifi network. Connect your device with USB Cable, launch Xcode, then on Xcode menu, choose: Window->Devices and Simulators. Choose device and check "Connect via network". Now you can disconnect USB and develop on device using wifi. ScreenShot

Helpless answered 7/6, 2017 at 7:39 Comment(0)
T
1

" http://diawi.com "

this provides you build link of your project. Whereas with wifi its not at all possible.

Typebar answered 10/11, 2016 at 9:33 Comment(0)
B
1

Wireless debug requires Xcode 9 or later and iOS 11 or later. Check this link. Here are detail steps to connect device for wireless debugging.

Brotherton answered 12/6, 2017 at 4:7 Comment(0)
W
1

Connect the iOS device via USB. Go into the device window (Cmd-Shift-2), Select your device and check [x] connect via network. Remove USB cable and IMPORTANT: Connect your device via Personal Hotspot.

Wilful answered 24/8, 2022 at 19:47 Comment(1)
This does not answer the question, as the original poster clearly states they are short of wires.Deannadeanne
G
0

Agree with Amr I have found buddybuild as Jenkins+Hockey in one. Extremely useful and so far it seems good product.

With buddybuild you dont need to ask anyones UDID of their iOS device. Also I use it for test automation, where they give you freedom to spin whatever you want as long as you know how to set it up in their postbuild and prebuild scripts

Groundhog answered 17/6, 2016 at 21:1 Comment(0)
G
0

To add to the above answers, for me the Mac and the iPhone should be connected to the SAME wifi network. Otherwise it will not recognise each other.

Gynarchy answered 13/2, 2020 at 12:47 Comment(0)
C
-3

Over Wifi app installation is possible after we generate an IPA .

  1. Create a plist file with bundle identifier (See apple documentation for steps )

  2. Create a HTML file (give the source of IPA (link tag) and bundle identifier / Provisioning profile)

Cephalothorax answered 9/9, 2014 at 12:13 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.