SocketRocket After trying to install socketrocket

2019-02-12 18:42发布

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.

4条回答
姐就是有狂的资本
2楼-- · 2019-02-12 18:49

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

查看更多
迷人小祖宗
3楼-- · 2019-02-12 18:54

Your app must be linked against the following frameworks:

  • libicucore.dylib
  • CFNetwork.framework
  • Security.framework
  • Foundation.framework
查看更多
Luminary・发光体
4楼-- · 2019-02-12 18:58

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.

查看更多
5楼-- · 2019-02-12 19:16

For Xcode 9, add

libicucore.tbd

in Linked Frameworks and libraries.

查看更多
登录 后发表回答