|
|
#1 |
|
Build and Go not launching app in Xcode???
So Ive been using Xcode to build this app ive been working on using openGL and GLUT. For some odd reason, starting yesterday after class, clicking on build and go will not launch the application. This has not been a problem as it has been working fine for weeks now, but now it will no longer show the app. It does say "<Application Name> Launched" at the bottom of the Xcode project window, and after clicking on the Stop button it will change to "Debugging Terminated". So it seems as though it is working except for the fact that the app is not being displayed. Can anybody help me? is there some kind of setting that may have gotten changed by accident, that is causing this to happen? and if it helps I am using Xcode 3.1. Thanks.
|
|
|
|
0
|
|
|
#2 |
|
set breakpoints in the debugger. One at the entry and exit point of each major function. See if they get triggered.
Litter these places with nslog messages as well. Doing these things you should be able to see where the program is or is not going. -Lee |
|
|
|
0
|
|
|
#3 |
|
I've had this happen quite a bit on Xcode 3.1 too. I don't know of a proper fix or what causes it. I usually just reboot and relaunch Xcode and it works again. Just relaunching xCode doesn't do the trick.
|
|
|
|
0
|
|
|
#4 |
|
Sounds like you set a breakpoint on some code somewhere and the debuger has stopped at that breakpoint waiting for you to continue or whatever.
Along the top of the file editing window you should see a row of controls. One looks like a Pause/Play button for audio players. Try clicking on it. The other alternative is some code was deleted that starts up the GUI. Check the startup portions of your app and see if something doesn't look right. There's a new feature of Xcode 3 that allows you to make a "snapshot" of your project at any arbitrary point (kinda like Time Machine I guess). In the File menu select "Make Snapshot" and then you have a kind of backup of your project. You can make changes and roll them back later. View the snapshots in the "Organizer" in the Window menu.
__________________
Obama is a true statesman whose experience as a state senator, half-term US Senator & guest lecturer in a Constitutional Law class has fully prepared him to take control of our nuclear arsenal.-Me |
|
|
|
0
|
|
|
#5 |
|
I don't. I can close Xcode. Reboot the computer and then open the project and Build and Go works. There's nothing weird about the code. It also runs perfectly fine if I launch the built app from the finder.
|
|
|
|
0
|
|
|
#6 |
|
This could be a bug w/ the debugger in XCode 3.1 if this spans projects and installations, and without any changes to the project a reboot corrects this. I'd file the bug with Apple. I would still try getting some NSLogs in there to see if the program is running at all.
-Lee |
|
|
|
0
|
|
|
#7 | ||
|
Quote:
Quote:
|
|||
|
|
0
|
|
|
#8 |
|
I'm getting the exact same thing with the Xcode 3.1 beta and the Allegro game library. I believe it to be a bug in Xcode, which wouldn't be so frustrating had I not only moved to the 3.1 beta because Shark was broken against 3.0.
I find that if I build and launch a debugging session with no breakpoints set, then the application launches correctly — Xcode seems able to launch gdb and gdb isn't broken so it launches your app correctly. The only annoyance is that it takes several extra seconds as gdb does it's extreme slow loading thing. |
|
|
|
0
|
|
|
#9 |
|
i have no idea why, but it seems to want to work again. I dont think I did anything special. wow. anyways, Thanks for the help.
|
|
|
|
0
|
|
|
#10 |
|
I was having the same problem. I went through my whole project and removed all the breakpoints, and then it seemed to work (or, at least I think that is what made it work). It is good to note that going to Run->Debug never seems to fail in launching the app, although not as convenient as the toolbar button.
|
|
|
|
0
|
|
|
#11 |
|
Whenever it doesn't work, build it without launching then double-click on the app icon in the project window.
__________________
2.4Ghz 20" Rev. A iMac, Wii, crimson DS, intuos3 4x6, PS3 iPod touch 2G 16GB > Fiio E1 > Hifiman RE0 |
|
|
|
0
|
|
|
#12 |
|
yea i was doing that, but that isnt a fix, just a lame work around. I mean come on, this isnt windows now, things should work as theyre supposed to. plus, doing it that way doesnt output anything to the console. so if you have things going out to the console for debugging purposes, it wont work.
|
|
|
|
0
|
|
|
#13 |
|
In Instruments, or in the terminal, just run a trace on the executable. See what comes out of stderr.
__________________
all Jarvis, all the time |
|
|
|
0
|
|
|
#14 |
|
|
0
|
|
|
#15 |
|
Application Build and Go
I've had very similar experiences since I installed beta 4 (I've been using beta 1 since it came out and never had this problem). As an experiment, I've managed to get a sample set of projects to build and run consistently if I start a new project from within Xcode 3.1 beta 4 rather than open a project created with an earlier version.
Edit: Actually scratch that - After 50+ test builds of new projects I now get mixed results for both new and old projects - so much for empirical data! Last edited by Columbo X; Apr 26, 2008 at 05:39 AM. Reason: New info |
|
|
|
0
|
|
|
#16 |
|
what seems to be working for me when i get that problem, is setting a breakpoint somewhere will cause the app to open. also sometimes the breakpoints seem to be overridden by Xcode? after setting the breakpoints Ill run the program, and the breakpoints will turn orange and wont do anything. the app will go on as if they were never there? anyone else have that problem? If I restart my comp. it will usually go back to working correctly.
|
|
|
|
0
|
![]() |
|
«
Previous Thread
|
Next Thread
»
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| thread | Thread Starter | Forum | Replies | Last Post |
| XCode - Build and Go Button - Inactive | TejasMehrotra | Mac Programming | 7 | Feb 21, 2012 09:58 PM |
| Xcode - Build and Go button not available | -aggie- | Mac Programming | 4 | Oct 25, 2010 02:14 PM |
| Super Pirate! Plunderer of World Treasures! is going to launch app store | sipahiro | iPhone and iPod touch Apps | 4 | Oct 23, 2010 08:43 AM |
| Help with Build and, Build and Go | redchannel | Mac Programming | 2 | Jun 22, 2009 05:37 PM |
| Ok. I updated to 10.5.7. Now Im getting errors on build and go. | jtbullet | iPhone/iPad Programming | 2 | May 22, 2009 09:32 AM |
All times are GMT -5. The time now is 05:46 PM.







Linear Mode

