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

后端 未结 30 3490
执笔经年
执笔经年 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:35

    A tip I found at the Apple Developer Forums:

    Go into your ProjectName.xcodeproj/ directory and delete anything named with your userid. Re-open the project in xcode and all that will get recreated and it should work. At least it did for me.

    Another tip is to manually delete the build directory.

    Yet another tip is to navigate to the Organizer (Shift ⇧ Command ⌘ 2 in xcode 4), select Projects, select you application in the left hand side and then the Delete...-button to the right of Derived Data.

    And never forget the universally useful tip: restart your computer and try again.

    Good luck!

提交回复
热议问题