简体   繁体   中英

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

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.

您的应用必须与以下框架相关联:

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

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

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.

For Xcode 9, add

libicucore.tbd

in Linked Frameworks and libraries.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM