Xcode运行目标列表中两次列出的iOS Simulator设备 [英] iOS Simulator devices listed twice in Xcode run destinations list

查看:41
本文介绍了Xcode运行目标列表中两次列出的iOS Simulator设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Xcode在每个iOS模拟器设备的运行目标列表中显示重复的条目.

Xcode is showing duplicate entries in the run destinations list for each iOS Simulator device.

运行目标的屏幕截图:

Screenshot of the run destinations:

设备"菜单中的屏幕截图:

Screenshot from Devices menu:

我试图完全关闭和打开Xcode,但并没有解决问题.重新启动也不能解决问题.

I tried to completely closing and opening Xcode, and it did not solve the problem. Rebooting also did not solve the problem.

我在Xcode.app的捆绑软件中添加了iOS 7.1 SDK.

I added iOS 7.1 SDK to the Xcode.app's bundle.

推荐答案

我怀疑如果重新启动服务,问题将消失:

I suspect the issue will go away if you restart the service:

退出Xcode,Instruments和iOS Simulator,然后在Terminal.app中运行它:

Quit Xcode, Instruments, and the iOS Simulator and then run this in Terminal.app:

killall -9 com.apple.CoreSimulator.CoreSimulatorService

在运行目标列表中确实复制了设备本身之前,我还没有看到这样的问题.其他报告表明确实存在重复的设备(具有唯一的UDID),但是在您的情况下,您会看到完全相同的设备的重复.

I have not seen an issue like this before where the device itself really is duplicated in the run destinations list. Other reports have been that there really were duplicated devices (with unique UDIDs), but in your case, you are seeing duplicates of the exact same device.

如果问题仍然存在,请启用调试日志记录:

If the issue is continuing to reproduce, please enable debug logging:

defaults write com.apple.iphonesimulator DebugLogging -bool YES
defaults write com.apple.CoreSimulator DebugLogging -bool YES

在启用调试日志记录的情况下重现该问题,然后在 http://bugreport.apple.com上提交错误报告 a>包括〜/Library/Logs/CoreSimulator/*.log和/var/log/system.log.

Reproduce the issue with debug logging enabled, and then file a bug report at http://bugreport.apple.com including ~/Library/Logs/CoreSimulator/*.log and /var/log/system.log.

如果您知道如何进入这种状态,请分享.

If you have any idea how you got into this state, please share it.

基于评论中的讨论,此问题是由添加iOS 7.1 SDK(不是模拟器SDK,而是设备SDK)引起的.这不是受支持的配置,但是这样做确实导致了此问题,这确实很奇怪.请注意,您应该始终根据最新的SDK进行构建,而只是将部署目标设置为希望部署到的最低版本.

Based on discussion in comments, the issue was caused by adding the iOS 7.1 SDK (not the simulator SDK, the device SDK). This is not a supported configuration, but it is certainly odd that doing so caused this issue. Please note that you should always build against the newest SDK and just set the deployment target to the minimum version you wish to deploy to.

这篇关于Xcode运行目标列表中两次列出的iOS Simulator设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆