2

I'm running into a build error in a React Native iOS project related to FuseboxTracer.cpp. The app compiles successfully on a colleague's machine but fails on mine. We're both using React Native 0.79.2 and targeting iOS.

Note: We are upgrading our React Native dependencies and code base which is what led to these errors.

I found it may be related to the CLANG version being mismatched but I am not sure how to proceed. I have switched to c++20 and receive an error regarding the React-RCTAppDelegate.

Initial Error Message:

React-perflogger
.../node_modules/react-native/ReactCommon/reactperflogger/fusebox/FuseboxTracer.cpp:73:45: No member named 'contains' in 'std::unordered_map<std::string, unsigned long long>'

.../FuseboxTracer.cpp:83:20: No member named 'contains' in 'std::unordered_map<std::string, unsigned long long>'

Error shown after switching to c++20:


./ios/Pods/Target Support Files/React-RCTAppDelegate/React-RCTAppDelegate-prefix.pch:2:9
Could not build module 'UIKit'

/Applications/Xcode.app/.../iPhoneSimulator18.4.sdk/usr/include/___wctype.h:58:10
Could not build module 'DarwinFoundation'

/Applications/Xcode.app/.../iPhoneSimulator18.4.sdk/usr/include/_assert.h:45:10
Could not build module 'DarwinFoundation'

/Applications/Xcode.app/.../iPhoneSimulator18.4.sdk/usr/include/_ctype.h:70:10
Could not build module 'DarwinFoundation'

/Applications/Xcode.app/.../iPhoneSimulator18.4.sdk/usr/include/sys/_types/_fd_def.h:31:10
Could not build module 'DarwinFoundation'

/Applications/Xcode.app/.../iPhoneSimulator18.4.sdk/usr/include/sys/_types/_in_addr_t.h:30:10
Could not build module 'DarwinFoundation'

1
  • did you solve the issue? Commented Oct 24 at 18:03

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.