Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Cody Te Awa
8,820 PointsBuild Succeeded, then Crash
I've just started to use Treehouse and can't even run the very first program, when i hit play it says "Build Succeeded" then crashes with a window that says "process launch failed: invalid host string: '(null)'". I've tried restarting my computer I've uninstalled and reinstalled Xcode and it does the exact same thing. Anyone have any suggestions? All wisdom is highly appreciated!
Cody Te Awa
8,820 Points// // main.c // MyFirstCProgram // // Created by turner on 9/26/13. // Copyright (c) 2013 treehouse. All rights reserved. //
include <stdio.h>
int main() {
// insert code here...
printf("Hello, World!\n");
return 0;
}
1 Answer
Stone Preston
42,016 Pointssee the following Stack Overflow post for a solution to your problem:
from one of the answers:
Xcode error Invalid string localhost
open terminal
//type
sudo nano /etc/hosts // it may ask for password , enter the password;
// copy and paste this
127.0.0.1 localhost 255.255.255.255 broadcasthost ::1 localhost fe80::1%lo0 localhost then press control-o and then press enter and then press control-x
//then type
dscacheutil -flushcache
Cody Te Awa
8,820 PointsAwesome thanks heaps!!!
obey me
1,135 Pointsobey me
1,135 PointsCan you upload your code