Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting "_utf8_nextCharSafeBody" error

I'm attempting to use MixPanel's iOS SDK to track a user action, and I'm receiving the following error when I try compiling:

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

As far as I can tell from the documentation setup instructions, I've added the framework correctly. This error message doesn't seem to be unique to MixPanel, so I'm wondering what causes this in general, and what aspect of the SDK have I incorrectly integrated?

like image 497
Andrew Avatar asked Feb 12 '16 19:02

Andrew


1 Answers

I've fixed this issue by adding libicucore.dylib in my project under Link binary with Libraries. Here is an Screenshot showing exactly how is should look.

like image 82
Matteo Galli Avatar answered Oct 21 '22 02:10

Matteo Galli