无线调试是最近在Xcode 9、iOS 11和tvOS 11中添加的功能。苹果4K电视没有USB接口,因此需要无线调试。如何在Xcode中进行无线调试?
当前回答
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地址连接”选项出现在下拉菜单中,在我第一次能够连接超级黑客风格之前,它就不在那里了。如果我连接,然后打开网络过滤器,它就会断开我的手机。
其他回答
我遵循了所有建议的步骤,特别是ios_dev提供的步骤,但我的iPhone无法从Xcode中识别出来,而且我无法通过WiFi进行调试。在“设备和模拟器”窗口中右键单击我的设备的左侧面板,然后“通过IP地址连接…”,插入iPhone IP,现在它正确工作了
如果你已经完成了Surjeet给出的所有步骤,但仍然没有得到网络连接图标,那么请执行以下步骤:
使用右键单击“已连接”部分中的设备解除设备配对。 重新连接设备。 点击弹出窗口左侧末端的“+”按钮。
选择设备并单击next按钮
点击信任和密码(如果可用)从设备。
点击完成按钮。
现在,点击“通过网络连接”。
现在您可以在设备名称之后看到网络连接图标。享受吧!
对我来说,唯一有效的方法就是用蓝牙把我的手机和MacBook连接起来。(根据ios_dev上面的回答,我是在第一次将我的手机与Xcode配对并通过电缆连接后这样做的。)
在我的手机上,我选择了设置>蓝牙,然后在“我的设备”下点击我的MacBook的名字来连接。
然后我去了Xcode > Devices and Simulators,选择我的手机并选择“通过网络连接”。几秒钟后,我的手机旁边出现了地球仪图标,我可以在手机上运行和调试我的应用程序了。
即使我的MacBook连接了WiFi网络,手机使用的是LTE,这个功能也能正常工作。唯一的缺点是在手机上安装应用程序非常缓慢。
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地址连接”选项出现在下拉菜单中,在我第一次能够连接超级黑客风格之前,它就不在那里了。如果我连接,然后打开网络过滤器,它就会断开我的手机。
网络调试要求在macOS 10.12.4上运行Xcode 9.0或更高版本 或更高版本,并且在设备上要求iOS 11.0或更高版本,或tvOS 11.0 或更高版本。
iPhone
iOS 11将不适用于32位设备,即iPhone 5、iPhone 5c及以下设备。第一代64位的iPhone是5s。
iPad
iPad mini 2将是支持iOS 11的最老的iPad。
iPod
iPod必须是iPod 6才能运行iOS。
如果你的设备不仅用于开发,还用于生产,请注意,beta操作系统不适合胆小的人;-)
推荐文章
- 如何删除默认的导航栏空间在SwiftUI导航视图
- Ios模拟器:如何关闭应用程序
- 准备好开发人员ID的macOS安装程序包
- 创建配置文件失败
- 如何在iOS中使用Swift编程segue
- Swift -整数转换为小时/分钟/秒
- Swift:声明一个空字典
- 在成功提交我的应用程序后,“太多符号文件”
- 首先添加一个UIView,甚至是导航栏
- 复制并重命名Xcode项目和相关文件夹
- 我如何改变UIButton标题颜色?
- 在Swift中如何调用GCD主线程上的参数方法?
- NSLayoutConstraints是可动画的吗?
- iOS -构建失败,CocoaPods无法找到头文件
- Xcode 4挂在“附加到(应用程序名称)”