未找到架构i386的符号 - MCPConnection
问题描述:
今天我安装了用于mysql的MCPConnetion。未找到架构i386的符号 - MCPConnection
我刚刚将源代码复制到我的应用程序。
然后,我调用代码:
#import "MCPConnection.h"
与下摆工作:
MCPConnection *connection = [[MCPConnection alloc] initToHost:@"localhost" withLogin:@"root" usingPort:8889];
和Xcode中给我一个错误:
"_OBJC_CLASS_$_MCPConnection", referenced from:
Objc-class-ref in DetailViewController.o
Symbol(s) not found for architecture i386
Linker command failed with exit code 1 (use -v to see invocation)
我目前没有什么?
(Xcode的4.4 DP2,山狮DP2)
答
的问题是最有可能的,该项目不包括必要的框架。转到您的目标 - >构建阶段 - >链接,并验证实际上您是否拥有包含MCPConnection的框架。