¿Cómo resolver el error del enlazador de Apple Mach-o? (_OBJC_CLASS _ $ _ Connection ", referenciado desde ..)

I get this error and people says it about missing frameworks but i can't see I'm missing any.

Undefined symbols for architecture armv7:
"_OBJC_CLASS_$_Connection", referenced from:
objc-class-ref in SocketServer.o
ld: symbol(s) not found for architecture armv7
collect2: ld returned 1 exit status

It happens when i add this:

theServer = [[SocketServer alloc]init];
theServer.serverName = [NSString stringWithFormat:@"%@", username];
theServer.delegate = self;

¿Qué hay que probar?

SocketServer is a class from a project from the book Apress Beginning iPhone Games Development

preguntado el 09 de marzo de 12 a las 15:03

1 Respuestas

Puedo ver desde el código fuente del libro, that there is a related Connection class that you are forgetting to link with:

Beginning iPhone Games Development Source Code/chapter 15 - PartyTime - Peter Bakhirev/TwentyFour final/Classes/Connection.m

Add that class to your project and it should then link.

respondido 09 mar '12, 16:03

Big thank you, spent hours on this! Had it in my project but wasn't linked for some reason. Removed it and added it again. - Jonathan

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.