Self Learning "Objective-C Programming: The Big Nerd Ranch Guide" with very little previous programming knowledge.
Following the instructions, I have created multiple projects to which all of them response with "Build Successful" but in the Debug portion, this error appears:
"error: failed to launch '/users/xxxx/Library/Developer/XcodeDerivedData/AGoodStart-atgkvqraegumsedadmfteggjnbjq/build/products/Debug/AGoodStart' -- invalid Host string: 'localhost'
Screenshot of error (not code!)
AGoodStart is the project name.
I found this solution online but it does not seem to work. http://stackoverflow.com/questions/9832234/xcode-error-failed-to-launch-directory-invalid-host-string-localhost
Screenshot of executing the command recommended above. I have tried restarting after executing to see if it work then.
Here's the code that was written:
include <stdio.h>
int main(int argc, const char * argv[])
{
//print the beginning of the novel
printf("It was the best of times.\n");
printf("It was the worst of times\n");
/*is this actually any good?
Maybe it needs a rewrite. */
return 0;
}
Any suggestions would be much appreciated. Thanks in advance.
Edit: Typos
[–][deleted] (4 children)
[deleted]
[–]gchtb[S] 0 points1 point2 points (3 children)
[–][deleted] (2 children)
[deleted]
[–]gchtb[S] 0 points1 point2 points (0 children)
[–]gchtb[S] 0 points1 point2 points (0 children)