Search code examples
objective-cxcode7sinch

Sinch SDK integration error : Undefined symbols for architecture x86_64


I am getting below error in project with Sinch SDK

Undefined symbols for architecture x86_64: "std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::find_last_of(char const*, unsigned long, unsigned long) const", referenced from

What I tried.

  • Change Architectures to armv7, armv7s as suggested here.

  • Remove arm64 from valid Architectures as suggested here.

  • I compare build setting from Sinch sdk samples downloaded from here.


What i am using

  • XCode 7.1.1 (Build project)

Download
You can download my project from here.

Image enter image description here

How can I build my sample project? Would someone suggest some settings for it?


Solution

  • Remove x64 is not required anymore we do support that. are you using pods or doing it manually? If manually make sure you have all the required frameworks and that you set -ObjC -XLinker in other flags https://www.sinch.com/docs/voice/ios/#firsttimesetup or use cocapods