如何将设备添加到 Xcode 设备?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/7506281/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-09 04:06:57  来源:igfitidea点击:

How do I add a device to Xcode devices?

xcode

提问by Phillip Senn

I have an iPad and an iPhone. My iPhone is listed under devices in Xcode, and I'm trying to add my iPad.

我有一个 iPad 和一个 iPhone。我的 iPhone 列在 Xcode 的设备下,我正在尝试添加我的 iPad。

Q: How do I add a device in Xcode?

问:如何在 Xcode 中添加设备?

采纳答案by PengOne

Open Xcode. Plug in the device. Follow the prompts.

打开 Xcode。插入设备。按照提示操作。

回答by James

Sometimes plugging in the device does not bring up the window.

有时插入设备不会打开窗口。

In this case, from the Xcode menu, select Window and then Organizer.

在这种情况下,从 Xcode 菜单中选择 Window,然后选择 Organizer。

回答by Vlad

Connect your device to your Mac with cable.

使用电缆将您的设备连接到 Mac。

  1. Open XCode
  2. Window -> Devices & Simulators
  3. Tap on your device
  4. Tap to check on "Show as run destination"
  5. Tap to check on "Connect via network"
  1. 打开 XCode
  2. 窗口 -> 设备和模拟器
  3. 点按您的设备
  4. 点击以选中“显示为运行目的地”
  5. 点击以检查“通过网络连接”

回答by GeoSaffer

  1. Open Xcode
  2. Window -> Devices & Simulators
  3. On the bottom left of the Devices window is a "+" Sign, Click on it.
  4. Choose a connected device from the list to setup
  5. click "Next"
  6. when complete Click "Done"
  7. Disconnect and Reconnect the Device
  1. 打开 Xcode
  2. 窗口 -> 设备和模拟器
  3. 在设备窗口的左下角是一个“+”号,点击它。
  4. 从列表中选择连接的设备进行设置
  5. 点击下一步”
  6. 完成后点击“完成”
  7. 断开并重新连接设备

回答by Josh

I added my iPhone,which had the same issue, by changing my deployment target to match the OS on my phone, selecting my phone in the simulation bar (by the play stop links) and clicking the fix issue link.

我添加了我的 iPhone,它有同样的问题,通过更改我的部署目标以匹配我手机上的操作系统,在模拟栏中选择我的手机(通过播放停止链接)并单击修复问题链接。