我的 iOS 设备没有出现在 xcode 设备列表中,显示在管理器中

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

My iOS device not appearing in xcode device list, showing in organizer

iosxcode4.5device

提问by Mehul Thakkar

I m having xcode 4.5,

我有 xcode 4.5,

I have connected my iTouch(registered in developer program) to Mac Machine. It is appearing in Organizer's Device list. But, it is not appearing in xcode's device list(where simulators are) in one of my project. It is also shown when i open my other proejects.

我已经将我的 iTouch(在开发者程序中注册)连接到 Mac Machine。它出现在管理器的设备列表中。但是,它没有出现在我的一个项目中的 xcode 设备列表(模拟器所在的位置)中。当我打开其他项目时也会显示它。

So, What may be the problem in my this project, in which device is not appearing. Is any settings should be changed??

那么,我的这个项目可能有什么问题,没有出现在哪个设备中。是否应该更改任何设置?

回答by iphonic

See the image below and change the settings.

请参阅下图并更改设置。

enter image description here

在此处输入图片说明

回答by Mustafa

I tried everything and then found that my device was identified on a different Mac but not mine. Quit and Reopen XCode resolved it.

我尝试了所有方法,然后发现我的设备在另一台 Mac 上被识别,但不是我的。退出并重新打开 XCode 解决了它。

回答by The Camster

You might need to "trust" the computer - a device will not show up in the organizer if the computer is not trusted.

您可能需要“信任”计算机 - 如果计算机不受信任,设备将不会显示在管理器中。

Restart the iPad while it is connected to the computer. When it restarts, it will ask if you want to "Trust" the computer or not. Do so, then the device will show up in the Xcode Organizer.

在 iPad 连接到计算机时重新启动 iPad。当它重新启动时,它会询问您是否要“信任”计算机。这样做,然后设备将显示在 Xcode Organizer 中。

回答by Yash Bedi

  1. Restart XCode
  2. Try Changing the USB Port.
  3. Clean Project. Shift + command + K.
  4. Clear Derive Data.
  1. 重启 XCode
  2. 尝试更改 USB 端口。
  3. 清洁项目。Shift + command + K.
  4. 清除派生数据。

回答by jayesh lathiya

Go to organiser, select your device, click on remove button at bottom of organiser screen, unplug your device and connect it once again. That's it. your device should be appear in xcode.

转到管理器,选择您的设备,单击管理器屏幕底部的删除按钮,拔下设备并再次连接。就是这样。您的设备应该出现在 xcode 中。

回答by Mike Weller

The deployment target for your project is probably too high (e.g. iOS 7 if you are using Xcode 5 DP). Change it to a minimum version compatible with your device and try again.

您项目的部署目标可能太高(例如,如果您使用的是 Xcode 5 DP,则为 iOS 7)。将其更改为与您的设备兼容的最低版本,然后重试。

回答by Sourabh Bhardwaj

Go to organiser and click your device in the left panel. On the right, see if it is registered for development or not. If not, click "Use for development". Hope it helps !!

转到管理器并在左侧面板中单击您的设备。在右侧,查看它是否已注册用于开发。如果没有,请单击“用于开发”。希望能帮助到你 !!

回答by Hlung

Got this problem too. I plug my phone to Apple Cinema Display. Turns out I forgot to plug in the display's USB cable to my MacBook Air, so only power goes to my device but no data transmission (/me facepalm big time).

也遇到了这个问题。我将手机连接到 Apple Cinema Display。原来我忘记将显示器的 USB 电缆插入我的 MacBook Air,所以只有电源进入我的设备,但没有数据传输(/me facepalm big time)。

回答by iAmd

My case, I was trying to run a sample app I just downloaded and didn't knew it was iPad only. And I had plugged-in an iPhone. :)

我的情况是,我试图运行一个我刚刚下载的示例应用程序,但不知道它只是 iPad。我已经插入了 iPhone。:)

回答by B. Wason

I'm using a MacBook Pro (13-inch, 2019, Two Thunderbolt 3 ports) and my iPhone was connected through a USB-C Digital AV Multiport Adapter. The iPhone was no longer shown as a connected device. Tried connecting the iPhone directly to the MacBook without the Adapter and now it IS a connected device. I'm going to consider using a wireless connection for development.

我使用的是 MacBook Pro(13 英寸,2019,两个 Thunderbolt 3 端口),我的 iPhone 是通过 USB-C 数字 AV 多端口适配器连接的。iPhone 不再显示为已连接的设备。尝试在没有适配器的情况下将 iPhone 直接连接到 MacBook,现在它是一个已连接的设备。我将考虑使用无线连接进行开发。