ios Xcode 4.2 首选项“支持无线连接设备”有什么作用?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/7266391/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
What does the Xcode 4.2 preference "Support Wirelessly Connected Devices" do?
提问by HunkSmile
In Xcode 4.2, there is a new preference under the General tab called "iOS Device Discovery" with the checkbox option "Support Wirelessly Connected Devices."
在 Xcode 4.2 中,General 选项卡下有一个名为“iOS Device Discovery”的新首选项,带有复选框选项“Support Wirelessly Connected Devices”。
What does this option do? Once checked, how can we use this new capability?
这个选项有什么作用?一旦检查,我们如何使用这个新功能?
回答by DBD
- Plug your device into your machine.
- Go to iTunes -> device -> Summary page and check the "Sync with this XXXX over Wi-Fi" option
- In XCode, XCode menu -> Preferences -> General check the "Support Wirelessly Connected Devices"
- Unplug your Device
- On the device, go to Settings -> General -> iTunes Wi-Fi Sync and click "Sync Now"
- In XCode, to go to Organizer -> Devices and cross your fingers.
- 将您的设备插入您的机器。
- 转到 iTunes -> 设备 -> 摘要页面并选中“通过 Wi-Fi 与此 XXXX 同步”选项
- 在 XCode 中,XCode 菜单 -> Preferences -> General 勾选“Support Wirelessly Connected Devices”
- 拔下您的设备
- 在设备上,转到设置 -> 常规 -> iTunes Wi-Fi 同步,然后单击“立即同步”
- 在 XCode 中,转到管理器 -> 设备并交叉手指。
Step 5 is what did it for me. I've been struggling for days unable to get my devices to appear, but when I wirelessly synced them from the device itself, the little wirelessly connected symbol popped up in the Organizer in XCode. Hopefully it will work you too.
第 5 步是为我做的。几天来我一直在努力无法让我的设备出现,但是当我从设备本身无线同步它们时,在 XCode 的管理器中弹出了无线连接的小符号。希望它也会对你有用。
Edit: The device has to awake for XCode to see it. When my device sleeps, it vanishes off the Organizer
编辑:设备必须唤醒 XCode 才能看到它。当我的设备休眠时,它会从管理器中消失
Edit: This feature allows you to do all actions you could do on a device plug into your machine via a USB cable... only now without the cable. I've found this very useful to build to local testers with almost no effort on their part, run instruments like Leaks or Zombies to help track down pesky issues while your test is still comfortable sitting at their desk (instead of tethered to your machine).
编辑:此功能允许您执行您可以在通过 USB 电缆插入机器的设备上执行的所有操作......只是现在没有电缆。我发现这对于本地测试人员构建非常有用,他们几乎不费吹灰之力,运行 Leaks 或 Zombies 之类的工具来帮助跟踪讨厌的问题,而您的测试仍然坐在他们的办公桌前(而不是被束缚在您的机器上) .
Edit: This feature is no longer available as of Xcode 4.3.1It will re-appear later when it has less issues (they are estimating in version 4.4).
编辑:此功能从 Xcode 4.3.1 开始不再可用,稍后会在问题较少时重新出现(他们估计在 4.4 版中)。
2/2012- This feature is still gone as of Xcode 4.6. There is currently no sign of it returning in near future, if ever.
2/2012- 此功能从 Xcode 4.6 开始仍然消失。目前没有迹象表明它会在不久的将来回归,如果有的话。
10/2013- Xcode 5.0 is here and there is still no sign the feature will return. We can pretty much assume it's dead for the foreseeable future at this point.
2013年 10月- Xcode 5.0 已经发布,但仍然没有迹象表明该功能会恢复。我们几乎可以假设它在可预见的未来已经死了。
9/2014- I have a report that wifi device capability does exist in Xcode 6.0. The hypothesis is having a device which is set up to wirelessly sync with iTunes. I have started testing, but so far have been unable to get positive results. Thanks to Steven Kramer for raising this possibility and the image.
9/2014- 我有一份报告说 Xcode 6.0 中确实存在 wifi 设备功能。假设有一个设置为与 iTunes 无线同步的设备。我已经开始测试,但到目前为止一直无法获得积极的结果。感谢 Steven Kramer 提出这种可能性和形象。
回答by Karoy Lorentey
In some future Xcode release, the "Support Wirelessly Connected Devices" option will allow you to debug your apps on your devices without connecting them to a USB port of your development Mac. I find this feature isn't ready for production use yet, but you may have better luck with it. Here is what you need to do to set it up:
在未来的 Xcode 版本中,“支持无线连接设备”选项将允许您在设备上调试应用程序,而无需将它们连接到开发 Mac 的 USB 端口。我发现此功能尚未准备好用于生产用途,但您可能会更幸运。以下是您需要做的设置:
Connect your device using USB, start iTunes, check "Sync with this iPod/iPhone/iPad over Wi-Fi" under its entry in Devices.
Start Xcode. Open the Devices tab of the Organizer window, and verify that your device has a green dot beside its name.
Disconnect your device from your Mac; verify that iTunes still sees it and can sync with it wirelessly.
Check "Support Wirelessly Connected Devices" under Xcode's Preferences. Wait a few seconds.
Your device should now have a green Wi-Fi symbol beside it. If not, toggle the "Support Wirelessly Connected Devices" checkbox off/on or restart Xcode, iTunes, and/or your device until it does.
You should now be able to select the device in the Scheme pop-up menu. Try selecting it and start debugging your app wirelessly. Good luck!
使用 USB 连接您的设备,启动 iTunes,在设备条目下选中“通过 Wi-Fi 与此 iPod/iPhone/iPad 同步”。
启动Xcode。打开管理器窗口的设备选项卡,并确认您的设备名称旁边有一个绿点。
断开设备与 Mac 的连接;验证 iTunes 仍然可以看到它并且可以无线同步它。
在 Xcode 的首选项下选中“支持无线连接的设备”。等待几秒钟。
现在,您的设备旁边应该有一个绿色的 Wi-Fi 符号。如果没有,请关闭/打开“支持无线连接的设备”复选框或重新启动 Xcode、iTunes 和/或您的设备,直到它出现为止。
您现在应该能够在“方案”弹出菜单中选择设备。尝试选择它并开始无线调试您的应用程序。祝你好运!
In my case, Xcode is able to install new development builds on the device, but it is not yet able to reliably run & debug it. Both LLDB and GDB have lots of trouble connecting to the device. Sometimes they do succeed, but it's not reliable enough for convenient development.
就我而言,Xcode 能够在设备上安装新的开发版本,但尚不能可靠地运行和调试它。LLDB 和 GDB 在连接到设备时都有很多问题。有时它们确实成功了,但是对于方便的开发来说还不够可靠。
回答by James Broad
Please note that if you are using XCode 4.3, they have have removed wireless support, so following these steps will be in vain. Someone else also figured out they have silently removed the wirelessly connected devices feature: http://www.thomashajcak.com/wireless-support-in-xcode-4-3/
请注意,如果您使用的是 XCode 4.3,他们已经取消了无线支持,因此遵循这些步骤将是徒劳的。其他人也发现他们已经悄悄地删除了无线连接设备功能:http: //www.thomashajcak.com/wireless-support-in-xcode-4-3/
回答by chown
This allows the device to appear in the organizer if the device and computer are on the same wireless network even when not plugged in via a usb cord.
如果设备和计算机位于同一无线网络上,即使未通过 USB 线插入,这也允许设备显示在管理器中。
回答by sean808080
Another use for this switch is to address when Xcode is showing 100% CPU utilization when wireless syncing is enabled. By disabling wireless sync support, Xcode will only use hard wired devices for code deployment.
此开关的另一个用途是解决在启用无线同步时 Xcode 显示 100% CPU 利用率的问题。通过禁用无线同步支持,Xcode 将仅使用硬连线设备进行代码部署。
回答by Fried Rice
go to itunes, press sync, the device will be "re-connected", wait for a few sec, it should be showed in xcode
转到iTunes,按同步,设备将“重新连接”,等待几秒钟,它应该显示在xcode中