最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

reactjs - Implicit instantiation of undefined template 'std::char_traits<unsigned char>' - Stack O

programmeradmin3浏览0评论

/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

发布评论

评论列表(0)

  1. 暂无评论