无线调试是最近在Xcode 9、iOS 11和tvOS 11中添加的功能。苹果4K电视没有USB接口,因此需要无线调试。如何在Xcode中进行无线调试?
当前回答
你可以打开Xcode Help -> Run and debug -> Network debugging获取更多信息。希望能有所帮助。
其他回答
我尝试过使用Xcode设备窗口的连接网络选项。但我无法看到设备名称旁边的“已通过网络连接”图标。同时,一旦移除USB,“通过网络连接”选项就会消失。此外,设备名称出现在断开连接的设备列表下。
但是使用“通过IP地址连接…”选项,我能够连接。
右键单击设备名称(在断开连接列表下)并选择“通过IP地址....连接”选项。
输入设备的IP地址,选择“连接”。(您可以通过移动设备设置> Wi-Fi >选择wifi名称)
我试了所有的答案,但没有一个对我有效。我最终连接到不同的WiFi网络,然后我就可以无线调试了。
我不知道为什么它不能在旧的网络上工作
使用USB端口开启Internet共享:
你可以打开Xcode Help -> Run and debug -> Network debugging获取更多信息。希望能有所帮助。
LOL, I was doing all the steps here - I ended up doing the unpairing/repairing steps from the "given by Surjeet" answer. It didn't work, and then I noticed that when I clicked the "connect via network" button, the same yellow box would pop up that pops up when you repair, saying "busy" - I got frustrated and just started hammering the "connect via network" button, clicking it quickly for probably like 15 - 20 clicks - it started spazzing out, but eventually landed on being able to connect to the network. Before that worked, I also shut my wifi off and turned it on again, as suggested by one of these answers, but clicking the "connect via network" button really fast did the trick...LOL
此外,在我按下按钮之前,我链接了设备支持文件夹,尽管我不确定它是否做了什么:
打开终端
cd /应用程序/ xcode /内容/开发/平台/ iPhoneOS.platform / DeviceSupport Ln -s 13.3 13.4 Ls -l 13.4 重启Xcode并在设备上重试运行
说在这里做- https://forums.developer.apple.com/thread/126940 -我在评论中编辑了文件夹版本,以调整到最新版本的iOS 13.4。
编辑 我相信我找到了我的问题所在,我不得不停止我的小飞贼网络过滤器。此外,在我能够通过敲击按钮连接后,当你在xcode的设备管理器中右键单击设备时,“通过IP地址连接”选项出现在下拉菜单中,在我第一次能够连接超级黑客风格之前,它就不在那里了。如果我连接,然后打开网络过滤器,它就会断开我的手机。
推荐文章
- 在成功提交我的应用程序后,“太多符号文件”
- 首先添加一个UIView,甚至是导航栏
- 复制并重命名Xcode项目和相关文件夹
- 我如何改变UIButton标题颜色?
- 在Swift中如何调用GCD主线程上的参数方法?
- NSLayoutConstraints是可动画的吗?
- iOS -构建失败,CocoaPods无法找到头文件
- Xcode 4挂在“附加到(应用程序名称)”
- 为什么单元测试中的代码不能找到包资源?
- CFNetwork SSLHandshake iOS 9失败
- 请求失败:不可接受的内容类型:文本/html使用AFNetworking 2.0
- 缺少推荐的图标文件-该包不包含iPhone / iPod Touch的应用程序图标,像素为“120x120”,png格式
- 以编程方式创建segue
- Xcode 10的对象库去哪了?
- Xcode 10的UI元素在哪里?