iOS – Run/Debug/Install builds over Wi-Fi

2020-02-16 22:03发布

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.

15条回答
Animai°情兽
2楼-- · 2020-02-16 22:30

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

查看更多
手持菜刀,她持情操
3楼-- · 2020-02-16 22:33

(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

查看更多
家丑人穷心不美
4楼-- · 2020-02-16 22:34

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.

查看更多
Luminary・发光体
5楼-- · 2020-02-16 22:34

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.

查看更多
Luminary・发光体
6楼-- · 2020-02-16 22:34

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.

查看更多
我想做一个坏孩纸
7楼-- · 2020-02-16 22:36

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

查看更多
登录 后发表回答