admin管理员组

文章数量:1347719

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/usr/include/c++/v1/string_view:300:42 Implicit instantiation of undefined template 'std::char_traits'

When building my app in XCode, I get the following error. I've tried to add #include <folly/String.h> in my json_pointer.cpp as well as #include and the build keeps failing.

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/usr/include/c++/v1/string_view:300:42 Implicit instantiation of undefined template 'std::char_traits'

When building my app in XCode, I get the following error. I've tried to add #include <folly/String.h> in my json_pointer.cpp as well as #include and the build keeps failing.

Share Improve this question asked 2 days ago user47467user47467 1,1032 gold badges18 silver badges36 bronze badges
Add a comment  | 

2 Answers 2

Reset to default 2

This is an issue reported in the react-native Github Repo: https://github/facebook/react-native/issues/50411

Right now, the solution is to downgrade XCode from 16.3 to 16.2

This should be fixed now!

  • React Native < 0.76 ==> They are affected by the problem. We are not releasing patches for them because they are out of the support window. If you can't upgrade to RN 0.76, please stay on Xcode 16.2 and plan for an update.
  • React native 0.76.9 ==> released today. It contains the fix for this issue. If you were on 0.76.x < 0.76.9, please upgrade to 0.76.9
  • React Native > 0.76 ==> those versions were not affected by the problem.

Source: https://github/facebook/react-native/issues/50411#issuecomment-2776681575

本文标签: reactjsImplicit instantiation of undefined template 39stdchartraitsltunsigned chargt39Stack Overflow