我收到了这个错误,人们说它缺少框架,但我看不出我错过任何一个。
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
当我添加它时会发生这种情况:
theServer = [[SocketServer alloc]init];
theServer.serverName = [NSString stringWithFormat:@"%@", username];
theServer.delegate = self;
有什么可尝试的?
SocketServer是来自Apress Beginning iPhone Games Development
一书的项目中的一个类答案 0 :(得分:2)
我可以从book's source code看到,您忘记链接的是相关的Connection
课程:
Beginning iPhone Games Development Source Code/chapter 15 - PartyTime - Peter Bakhirev/TwentyFour final/Classes/Connection.m
将该类添加到项目中,然后将其链接。