Undefined symbols for architecture i386: “_utf8_nextCharSafeBody”, referenced from:"

后端 未结 3 601
长发绾君心
长发绾君心 2020-12-31 12:05

How to clear this error. Please help me, I don\'t know about socket process

Undefined symbols for architecture i386: \"_utf8_nextCharSafeBody\", referenced from:

相关标签:
3条回答
  • 2020-12-31 12:25

    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.

    0 讨论(0)
  • 2020-12-31 12:26

    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.

    0 讨论(0)
  • 2020-12-31 12:28

    I added this framework and it seems to solve my problem

    • libicucore.dylib
    0 讨论(0)
提交回复
热议问题