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

北城余情 提交于 2019-12-18 21:55:16

问题


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.

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.

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

The new one doesn't make sense at all.


回答1:


Your app must be linked against the following frameworks:

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



回答2:


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




回答3:


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.




回答4:


For Xcode 9, add

libicucore.tbd

in Linked Frameworks and libraries.



来源:https://stackoverflow.com/questions/16889888/socketrocket-after-trying-to-install-socketrocket-so-that-i-can-make-ponydebugge

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!