添加CocoaAsyncSocket时,架构armv7的未定义符号
我想在xcode 4.2.1下使用XMPPFramework和一个iOS5项目(ARC),但是我正面临着这个问题。 一旦我添加CocoaAsyncSocket到我的项目作为准备我的项目使用XMPPFramework 1中的一部分,我得到以下错误。
我见过一些其他人拥有“未定义符号的build筑armv7”,但我目前还没有find这个问题的答案。
我已经链接到CFNetwork并将GCDAsyncSocket.m标记为非ARC(-fno-objc-arc),但是我仍然得到错误。 任何帮助表示赞赏。
Undefined symbols for architecture armv7: "_SSLGetBufferedReadSize", referenced from: ___33-[GCDAsyncSocket flushSSLBuffers]_block_invoke_0 in GCDAsyncSocket.o -[GCDAsyncSocket doReadData] in GCDAsyncSocket.o "_SSLSetIOFuncs", referenced from: -[GCDAsyncSocket ssl_startTLS] in GCDAsyncSocket.o "_SSLRead", referenced from: -[GCDAsyncSocket flushSSLBuffers] in GCDAsyncSocket.o -[GCDAsyncSocket doReadData] in GCDAsyncSocket.o "_SSLWrite", referenced from: -[GCDAsyncSocket doWriteData] in GCDAsyncSocket.o "_SSLClose", referenced from: -[GCDAsyncSocket closeWithError:] in GCDAsyncSocket.o "_SSLCreateContext", referenced from: -[GCDAsyncSocket ssl_startTLS] in GCDAsyncSocket.o "_SSLSetEnabledCiphers", referenced from: -[GCDAsyncSocket ssl_startTLS] in GCDAsyncSocket.o "_SSLSetCertificate", referenced from: -[GCDAsyncSocket ssl_startTLS] in GCDAsyncSocket.o "_SSLSetConnection", referenced from: -[GCDAsyncSocket ssl_startTLS] in GCDAsyncSocket.o "_SSLHandshake", referenced from: -[GCDAsyncSocket ssl_continueSSLHandshake] in GCDAsyncSocket.o "_SSLSetProtocolVersionMax", referenced from: -[GCDAsyncSocket ssl_startTLS] in GCDAsyncSocket.o "_SSLSetPeerDomainName", referenced from: -[GCDAsyncSocket ssl_startTLS] in GCDAsyncSocket.o "_SSLSetProtocolVersionMin", referenced from: -[GCDAsyncSocket ssl_startTLS] in GCDAsyncSocket.o ld: symbol(s) not found for architecture armv7 clang: error: linker command failed with exit code 1 (use -v to see invocation)
您只需要在框架中添加SecurityFramework。 我也遇到了同样的问题。
- presentViewController:animation:YES视图不会出现,直到用户再次点击
- 健康包HKAnchoredObjectQuery在iOS 9不返回HKDeletedObject
- 在iOS上获取电池健康信息
- 从故事板本地化属性的UITextView
- 报价代码适用于iOS!
- 错误ITMS-90362 – 共享扩展Xcode ios
- TextField覆盖在ScrollView“调整到适合”TextField不起作用
- 在UINavigationController中使用带有UITabBarController的UISearchController时,搜索栏会被切断
- Phonegap / ios – 捕获video不保存到iPhone相机胶卷