0

For some days I am facing this strange problem. My app works fine for iOS 6.0 but same app gets crashed in iOS 7.0. And the crash point denoted by xcode is std::string operation. But couldn't find any wrong string operation in my code. Here is the backtrace-

0 libstdc++.6.dylib 0x3a548dfc std::string::size() const + 0
1 SimpleChat 0x005ebf82 std::basic_string<char, std::char_traits<char>, std::allocator<char> > std::operator+<char, std::char_traits<char>, std::allocator<char> >(char const*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) (basic_string.tcc:681)

Is there anyone familiar with this type of crash. Any suggestion is greatly appreciated.

Naseef Chowdhury
  • 2,357
  • 3
  • 28
  • 52
  • Maybe this one might help http://stackoverflow.com/questions/18959691/ios7-only-stdlibc-linking-issue – Lanorkin Feb 27 '14 at 15:47

1 Answers1

0

Found the issue. I am posting my answer here so that an user can find the solution of the issue.

The issue was related to compiler options. In my case I was setting wrong libstd++ for iOS 7.0 So one should check the compiler options carefully.

Naseef Chowdhury
  • 2,357
  • 3
  • 28
  • 52