架构 i386 的未定义符号:“_utf8_nextCharSafeBody",引用自:" [英] Undefined symbols for architecture i386: "_utf8_nextCharSafeBody", referenced from:"

查看:31
本文介绍了架构 i386 的未定义符号:“_utf8_nextCharSafeBody",引用自:"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何清除此错误.请帮帮我,我不知道socket进程

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

架构 i386 的未定义符号:_utf8_nextCharSafeBody",引用自:_validate_dispatch_data_partial_string 在 SRWebSocket.old:找不到架构 i386 的符号clang:错误:链接器命令失败,退出代码为 1(使用 -v 查看调用)

Undefined symbols for architecture i386: "_utf8_nextCharSafeBody", referenced from: _validate_dispatch_data_partial_string in SRWebSocket.o ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation)

推荐答案

与套接字无关.您正在构建的目标二进制文件无法链接,因为它缺少 i386 架构的二进制文件.基本上,您可能有该符号的 .o 文件 - _utf8_nextCharSafeBody - 用于 armv,但您没有用于模拟器 (i386) 的 .o 目标文件二进制文件.检查您的静态库依赖项中支持的架构并添加 i386.

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.

关于在 Xcode 中构建的基础知识,特别是编译和链接阶段,值得一读.

It's worth reading up on the basics of building in Xcode, specifically compilation and linkage phases.

这篇关于架构 i386 的未定义符号:“_utf8_nextCharSafeBody",引用自:"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆