xcode SocketRocket 在尝试安装 socketrocket 以便我可以使 PonyDebugger 工作后,我收到 3 个 Apple Match-O 链接器错误

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/16889888/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 03:26:41  来源:igfitidea点击:

SocketRocket After trying to install socketrocket so that I can make PonyDebugger work, I'm getting 3 Apple Match-O linker errors

iosxcodecocoa-touchwebsocketsocketrocket

提问by gdubs

I'm getting the fllowing. It's my first time trying to install this and I have to since I need the Pony Debugger working.

我得到了流动。这是我第一次尝试安装它,因为我需要 Pony Debugger 工作,所以我必须这样做。

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

Any advice is very much appreciated!

非常感谢任何建议!

Thanks!

谢谢!

EDIT: I added the SocketRocket.Framework to the build Phases and the errors are gone but is now giving me a new one.

编辑:我将 SocketRocket.Framework 添加到构建阶段,错误消失了,但现在给了我一个新的。

/Library/Developer/Xcode/DerivedData/ProjectIpaws-fxtqgpqcnolfqvgaeikbuxwzdbcv/Build/Products/Debug-iphonesimulator/SocketRocket/SocketRocket

The new one doesn't make sense at all.

新的完全没有意义。

回答by Adam Waite

Your app must be linked against the following frameworks:

您的应用程序必须链接到以下框架:

  • libicucore.dylib
  • CFNetwork.framework
  • Security.framework
  • Foundation.framework
  • libicucore.dylib
  • CFNetwork.framework
  • Security.framework
  • Foundation.framework

回答by Narasimha Nallamsetty

The file extensions changed in Xcode 7 for some reason. Add the .tbd files

由于某种原因,Xcode 7 中的文件扩展名发生了变化。添加 .tbd 文件

回答by user8867199

For Xcode 9, add

对于 Xcode 9,添加

libicucore.tbd

libicucore.tbd

in Linked Frameworks and libraries.

在链接框架和库中。

回答by aniruddhc

Try cleaning and re-build. If not try cleaning Derived Data by going into Organizer -> Projects, select your project and Delete next to the Derived Data location.

尝试清理并重新构建。如果不尝试通过进入管理器 -> 项目来清理派生数据,请选择您的项目并删除派生数据位置旁边的删除。