当我在模拟器中启动我的应用程序时,Xcode在“附加到(应用程序名称)”处被阻止 [英] Xcode blocked at “Attaching to (app name)” when I launch my app in the simulator

查看:275
本文介绍了当我在模拟器中启动我的应用程序时,Xcode在“附加到(应用程序名称)”处被阻止的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道有很多帖子都有同样的问题。我只花了至少2个小时来阅读它们,我尝试了我在回复中看到的所有内容,但它仍然无效。我不知道该怎么办了。有人能帮我吗?
我使用Xcode 4.2.1

I know there's a lot of posts with the same that problem. I just spent at least 2 hours to read them and I tried everything I saw in the responses but it still doesn't work. I don't know what to do anymore. Can someone help me? I use Xcode 4.2.1

推荐答案

这个问题经常发生在我身上,解决方案总是杀了名为的过程SimulatorBridge

This problem occurs regularly for me, and the solution was always to kill the process named SimulatorBridge.

为了简化解决方案,您可以在Xcode中添加自定义行为来执行按照以下步骤执行任务:

And to simplify the solution you can add a custom 'behavior' in Xcode to do the task by following these steps:


  1. 使用此命令创建一个shell脚本文件:

  1. Make a shell script file with this command:

#!/bin/sh
killall SimulatorBridge


  • 将其保存在〜/ Library / Developer / Xcode / UserData / Behaviors / 中,作为 KillSimulatorBridge.sh

    现在,您可以运行此行为只要Xcode在尝试连接到您的应用程序时挂起,您甚至可以使用键盘快捷键来运行它。

    Now, you can run this behavior whenever Xcode hangs while trying to attach to your app, and you can even have a keyboard shortcut to run it.

    希望他帮助了某人。

    这篇关于当我在模拟器中启动我的应用程序时,Xcode在“附加到(应用程序名称)”处被阻止的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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