Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Missing framework and GCD error #37

Closed
Arcanum-XIII opened this Issue Apr 3, 2012 · 4 comments

Comments

Projects
None yet
4 participants

Hello,

I'm trying to use GCDAsyncSocket.m in a new projet, but no way of doing that without :

  • Adding CFNetwork.framework (solve 6 compiler issue) (so it need a configuration after all)

Even then, I've got error like : Undefined symbols for architecture i386:
"_SSLClose", referenced from:
-[GCDAsyncSocket closeWithError:] in GCDAsyncSocket.o
(trying to run it on the iphone 5.1 simulator)

GCDAsyncUdpSocket.m seem to suffer from errors related to Arc, mainly bridge casting, and some function that are not compatible by arc.

I'll gladly help, but can't for now — arc error are a mystery for me now.

Tested on Xcode 4.3.2.

It would seem that the other missing framework was Security.framework. Solved the issue for the GCDAsyncSocket.m !

@robbiehanson robbiehanson reopened this Apr 10, 2012

x1a0 commented Apr 27, 2012

I think I am having the same problem here. I am trying to compile one example comes with the codes: ConnectTest.

Below are the error:

"_SSLClose", referenced from:

  -[GCDAsyncSocket closeWithError:] in GCDAsyncSocket.o

"_SSLRead", referenced from:

  -[GCDAsyncSocket flushSSLBuffers] in GCDAsyncSocket.o


  -[GCDAsyncSocket doReadData] in GCDAsyncSocket.o

"_SSLGetBufferedReadSize", referenced from:

  ___33-[GCDAsyncSocket flushSSLBuffers]_block_invoke_0 in GCDAsyncSocket.o


  -[GCDAsyncSocket doReadData] in GCDAsyncSocket.o

"_SSLWrite", referenced from:

  -[GCDAsyncSocket doWriteData] in GCDAsyncSocket.o

"_SSLCreateContext", referenced from:

  -[GCDAsyncSocket ssl_startTLS] in GCDAsyncSocket.o

"_SSLSetIOFuncs", referenced from:

  -[GCDAsyncSocket ssl_startTLS] in GCDAsyncSocket.o

"_SSLSetConnection", referenced from:

  -[GCDAsyncSocket ssl_startTLS] in GCDAsyncSocket.o

"_SSLSetPeerDomainName", referenced from:

  -[GCDAsyncSocket ssl_startTLS] in GCDAsyncSocket.o

"_SSLSetCertificate", referenced from:

  -[GCDAsyncSocket ssl_startTLS] in GCDAsyncSocket.o

"_SSLSetProtocolVersionMin", referenced from:

  -[GCDAsyncSocket ssl_startTLS] in GCDAsyncSocket.o

"_SSLSetProtocolVersionMax", referenced from:

  -[GCDAsyncSocket ssl_startTLS] in GCDAsyncSocket.o

"_SSLSetEnabledCiphers", referenced from:

  -[GCDAsyncSocket ssl_startTLS] in GCDAsyncSocket.o

"_SSLHandshake", referenced from:

  -[GCDAsyncSocket ssl_continueSSLHandshake] in GCDAsyncSocket.o

ld: symbol(s) not found for architecture i386

clang: error: linker command failed with exit code 1 (use -v to see invocation)

Owner

robbiehanson commented Apr 27, 2012

GCDAsyncSocket requires the Security.framework. You need to add it to your Xcode project.

rahji commented Aug 9, 2012

Can this be added to the wiki?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment