swift - 无法注册服务 com.apple.coreservices.lsuseractivity.simulatorsupport

标签 swift ios8 xcode6

我的操作系统版本是 10.9.5,我已经安装了 Xcode 版本 6.0.1 (6A317)

安装后首次运行 Xcode 时显示错误弹出消息 “/Applications/Xcode/Contents/Developer/Platform/iphonesimulator.platforms/Developer/SDKs/iPhoneSimulator.sdk/usr/lib/dyld_sim 不属于 root”

然后我通过'ls -l dyld_sim'检查这个文件的所有者 它显示 root:wheel(感觉不错)

但是

当我尝试运行我的模拟器时,我卡住了。 出现黑屏,弹出窗口显示错误消息“无效设备状态”

当我打开控制台时它显示一条错误消息

“无法注册服务 com.apple.coreservices.lsuseractivity.simulatorsupport:无法查找 com.apple.coreservices.lsuseractivity.simulatorsupport”

谁能帮我解决这个问题,如何解决这个问题

enter image description here

最佳答案

放松一下解决方案就在这里 打开终端,只需键入此命令 sudo xcode-select -switch/Applications/Xcode.app/Contents/Developer

享受:)

关于swift - 无法注册服务 com.apple.coreservices.lsuseractivity.simulatorsupport,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26218295/

相关文章:

html - 网页未调整大小以适合 iPhone 6 Plus 上的屏幕

ios - 存储 iOS 应用程序的用户密码和用户名

xcode - 使用 Swift 将 CGImage 转换为 NSImage

ios - 使用 Generic 检查是否存在 Swift Array 项目

swift - 在闭包中使用无主引用

ios - iOS Swift 中解析密码重置错误

xcode - 滚动时在 TableViewCell 内的 Stepper 中重复值

ios - 在 iOS 8 上使用自定义 UI 动画显示和关闭共享扩展

swift - 将数据从一个 TableView 传递到另一个 TableView

ios - Swift 良好编码实践 : If statement with optional type Bool