2012-03-28 92 views
1

今天我安裝了用於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)

回答

0

的問題是最有可能的,該項目不包括必要的框架。轉到您的目標 - >構建階段 - >鏈接,並驗證實際上您是否擁有包含MCPConnection的框架。