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

风流意气都作罢 提交于 2019-11-28 18:16:28

问题


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.


回答1:


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.




回答2:


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




回答3:


(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

Image 2




回答4:


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.



回答5:


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.



回答6:


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 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

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

6- Unplug your USB cord

7- Go back to Xcode and Hit the Run button




回答7:


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




回答8:


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




回答9:


" http://diawi.com "

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




回答10:


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.




回答11:


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




回答12:


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 iPhone via USB cable to the Apple computer with macOS 10.12.4+ and Xcode 9+.

  2. Launch Xcode.

  3. Press Shift-Command-2 or Go to WindowDevices 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).

  6. Disconnect USB cable.

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

On iPhone go to GeneralDevice ManagementDev App and press TRUST.

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




回答13:


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)



来源:https://stackoverflow.com/questions/23827168/ios-run-debug-install-builds-over-wi-fi

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!