2012-09-17 20 views
0

引用當我加入AsyncSocket.h.m到項目中,我得到這個錯誤

Undefined symbols for architecture i386: 
" _OBJC_CLASS_$_AsyncSocket", referenced from: 
    objc-class-ref in ViewController.o 
ld: symbol(s) not found for architecture i386 
clang: error: linker command failed with exit code 1 (use -v to see invocation) 

如何解決呢?

回答

1

兩個步驟來解決這個問題:

  1. 添加CFNetwork.framework到項目

  2. 選擇AsyncSocket.m從Xcode的導航(左側)和檢查(右側)標示項目名稱在目標會員部分

或去構建階段>鏈接二進制與圖書館>點擊(+)>添加AsyncSocket.m

0

添加Security.framework以鏈接二進制與圖書館:)

相關問題