So I was searching for answer to this question but nothing really came up. I am building a C++ static library for iOS and I use <vector>
from standard library. However when I try to build I get error from within SDK iOS 17.5 char_trait.h
as follows:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.5.sdk/usr/include/c++/v1/__string/char_traits.h:290:17 No member named '__constexpr_wmemcmp' in namespace 'std'; did you mean '__constexpr_memchr'?
and in constexpr_c_functions.h
as follows:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.5.sdk/usr/include/c++/v1/__string/constexpr_c_functions.h:117:3 Static assertion failed due to requirement 'sizeof(const wchar_t) == 1': Calling memchr on non-trivially equality comparable types is unsafe.
I've set my c/c++ standards to C17 and C++17 in the build settings.
I have no idea what these weird errors are. Could really use some help.