How to clear this error. Please help me, I don\'t know about socket process
Undefined symbols for architecture i386: \"_utf8_nextCharSafeBody\", referenced from:
It's nothing to do with sockets. The target binary you are building cannot be linked because it's missing a binary for the i386 architecture. Basically, you may have a .o file for that symbol - _utf8_nextCharSafeBody
- for armv, but you don't have a .o object file binary for the simulator (i386). Check the supported architectures in your static library dependency and add i386.
It's worth reading up on the basics of building in Xcode, specifically compilation and linkage phases.
Add this framework: libicucore.dylib,CFNetwork.framework .
If not solved then Try to import the library that a used in the SRWebSocket class. and then fallow this steps to clean Product > Clean Product > Build . and then build the project.
I added this framework and it seems to solve my problem