Xcode 4.2. gets stuck “Attaching to myapp” when running

后端 未结 12 1774
梦毁少年i
梦毁少年i 2021-01-31 19:40

In xcode 4.2, sometimes when you\'re going to run your ios proj on simulator, the status windows says \"Attaching to myapp\", and just gets stuck there... until you cancel. Now,

12条回答
  •  醉梦人生
    2021-01-31 20:08

    I also tried all solutions in that topic but all failed. But finally it was found out that what was went wrong.

    What made this issue occurred is that some settings in Target->Build Settings was got modified by me for including C headers. And after I added all C headers and make it built. This issue occurred.

    It might be only works on the situation I described before.

    I just created an empty project and check all items in Target->Build Settings between the attaching-stuck app and the empty one. It was found that some items in the attaching-stuck one was different from the empty one.

    So I deleted it and make it attached successfully.

提交回复
热议问题