-->

SocketRocket After trying to install socketrocket

2019-02-12 19:04发布

问题:

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.