Xcode 4 hangs at “Attaching to (app name)”

后端 未结 30 3219
执笔经年
执笔经年 2020-11-28 18:20

I just upgraded to Xcode 4 and for some reason my app won\'t run in the simulator or iOS device. It was working perfectly in Xcode 3, but all of a sudden now when I press ru

相关标签:
30条回答
  • 2020-11-28 18:27

    For everyone still trying to resolve this after everything you tried from above, try starting iphone simulator, clicking iOS Simulator in menu on top, Reset Contents and Warnings. This will erase all apps from simulator, but now you can finally use simulator!

    0 讨论(0)
  • 2020-11-28 18:27

    Restarting simulator works for me :)

    0 讨论(0)
  • 2020-11-28 18:27

    This solution is not technical but it worked for me.

    When Attaching to Process shows up in xcode and it hangs for a while, just quite the iOS simulator and re-launch the app by pressing Command + R.

    It will launch the app without any issues :)

    0 讨论(0)
  • 2020-11-28 18:28

    This is what worked for me:

    In Xcode navigate to the Product menu and choose EDIT SCHEMES.

    In the list on the left choose Run YourAppName.app. From the Executable menu choose OTHER.

    Navigate and choose your .app file in your project directory.

    Now run and it works :)

    0 讨论(0)
  • 2020-11-28 18:28

    The best option would be

    1. Quit Simulator
    2. Open Another Project
    3. Run Project (just for the sake simulator opens)
    4. Delete the earlier project from simulator
    5. Clean the main project
    6. Run again

    Enjoy!!!

    0 讨论(0)
  • 2020-11-28 18:30

    My problem was also a folder named "resources" on the root source folder. Looks like it conflicts with some internal build naming.

    Renaming the folder to "res" solved the problem for me.

    0 讨论(0)
提交回复
热议问题