Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 4 "waiting for process 'Appname' to launch

I installed Xcode 4 and now cannot run one of my iPhone projects.

 Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin".sharedlibrary apply-load-rules all
Waiting for process 'AppName' to launch.

On the top status bar I see 'Attaching to AppName'. The only weird thing about the project is it has a dependency on ZXingWidget for QR code scans.

Weirder that it works on a co-workers computer, but not mine.

Tried removing my build directory, no dice.

I can run other iPhone projects from source in Xcode 4 with no problem.

Has anyone else seen this?

like image 538
quantumpotato Avatar asked Mar 16 '11 14:03

quantumpotato


2 Answers

I ran into the same issue. Go to Product -> Edit Scheme and select the Run scheme on the lefthand side. Go to the info tab, and next to launch there will be two options (neither of them selected): 'Automatically' and 'Wait for XXXX.app to Launch'. Select the Automatically one and it should clear up your issue.

I had actually built and used my projects using xcode 4 for a few days with no issues, and then this popped up randomly. Hope the this helps.

like image 101
Chris Avatar answered Oct 21 '22 00:10

Chris


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!

like image 26
Pål Brattberg Avatar answered Oct 21 '22 00:10

Pål Brattberg