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

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

    What worked for me is the following:

    In XCode:

    • Click on project name
    • Click on target name
    • Click on "Build Settings"
    • Reveal "Product Name" contents (click on triangle)
    • Make sure the name of all items matches that of project name
      • Example
        • Product Name myapp
          • Debug myapp
          • Release myapp
    • Reveal "Deployment" contents (click on triangle)
    • Make sure there is a "IOS Deployment Target" item
      • Example
        • IOS Deployment Target IOS 3.0
          • Debug IOS 3.0
          • Release IOS 3.0

    Then clean and run.

提交回复
热议问题