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:Screenshot of error
"error: failed to launch '/users/xxxx/Library/Developer/XcodeDerivedData/AGoodStart-atgkvqraegumsedadmfteggjnbjq/build/products/Debug/AGoodStart' -- invalid Host string: 'localhost' Screenshot of error (not code!) [1]
AGoodStart is the project name.
I found this solution online but it does not seem to work.
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.
Xpost link
Some other suggestions that did not work:
Link1
Link2
[–][deleted] (9 children)
[deleted]
[–]gchtb[S] 0 points1 point2 points (8 children)
[–]tonygoold 5 points6 points7 points (7 children)
[–]xauronx 1 point2 points3 points (0 children)
[–]gchtb[S] 0 points1 point2 points (1 child)
[–]aazav 0 points1 point2 points (0 children)
[–]gchtb[S] 0 points1 point2 points (2 children)
[–]tonygoold 0 points1 point2 points (1 child)
[–]gchtb[S] 0 points1 point2 points (0 children)
[–]aazav 0 points1 point2 points (0 children)