Introduction of C + + library in iOS project, compile link times the following error:
"Std::string::_rep::_m_destroy (std::allocator<char> const&)", referenced from:
"Std::_list_node_base::hook (std::_list_node_base*)", referenced from:
"Std::string::p ush_back (char)", referenced from:
"Std::string::append (char const*, unsigned long)", referenced from:
"Std::string::_rep::_s_empty_rep_storage", referenced from:
Obviously, all of these are stdc++ standard library functions.
Check build Phases->link Binary with Libraries also contains the Libstdc++.dylib library
Final Debug Discovery: Libstdc++.dylib is not actually a library, but a shortcut.
Actual use, may appear can not find the library situation, may also find, character problem;
Then, in the solution, replace the libstdc++.dylib directly with the libstdc++.6.0.9.dylib.
Build succeeded~
iOS imports a static library of the C + + language after compiling however, first check whether the libstdc++ is imported