Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

impilot

macrumors newbie
Original poster
Aug 14, 2009
19
0
Hi,

I am running Xcode 4.4.1 under 10.8.1 OS X. I am a total noob, working my way through Programming in Objective-C, Fourth edition. I am seeing a problem that I can't find any reference to with a number of google searches. I am working on very simple, beginning terminal programs. Today, I am trying to run something I worked on yesterday, and get this error listed below. They only difference is when I try to run this, I am not connected to the Internet. If I connect, it runs just fine. This is a very simple, 30 or so line program that has nothing to do with any network connectivity. Any ideas? I would like to be able to work on my training anywhere, not just when I am connected to the internet.

error: failed to launch '/Users/john/Library/Developer/Xcode/DerivedData/FractionTest-akyawopwwnhkvadynvuazcvubrgw/Build/Products/Debug/FractionTest' -- Host is down

Thanks,

John
 
Never heard of this problem before, but what I'd try (somewhat in order) is:

– Clean the project (Product > Clean).
– Try to access and launch the application from the Finder without an internet connection and see if it causes an issue.
– Delete the DerivedData folder (/Users/john/Library/Developer/Xcode/DerivedData/).
– Create a new project and see if that exhibits the same problem.

Post back with the results and, if it still doesn't work, someone may be able to suggest a different solution.
 
Thanks JoshDC!

– Clean the project (Product > Clean).
Did that. No effect. Same error.

– Try to access and launch the application from the Finder without an internet connection and see if it causes an issue.
If I go track down the actual executable that is in the Debug folder, it runs fine if I run it outside of Xcode.

– Delete the DerivedData folder (/Users/john/Library/Developer/Xcode/DerivedData/).
Did that. No effect. Same error.

– Create a new project and see if that exhibits the same problem.
Did that. No effect. Opened multiple projects (very small exercise programs). All are failing in the same way.

Post back with the results and, if it still doesn't work, someone may be able to suggest a different solution.
 
Can you see anything being logged in Console.app (Applications/Utilities).
Maybe try launching it without a debugger (Product > Edit Scheme… > Run > Debugger).
How about launching it another way such as Product > Profile.

Honestly, I've no idea what's wrong and I can't find any reference to it other than this thread. If none of these things provide any suggestion to what's wrong, I think I'm out of ideas!
 
JoshDB!!!!

Thank you! Thank You!

Somehow, the debugger got set to LLDB...don't know how that happened. I am not even far enough into my training to start using a debugger yet. Sheesh!

Anyways, if I change the debugger to GDB or None in the Edit Scheme, all is fine.

Thanks Again!

John
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.