react-native-bignumber icon indicating copy to clipboard operation
react-native-bignumber copied to clipboard

Issue: React Native BigNumber 0.2.3 incompatibility with Expo 51 and React Native 0.75.0

Open dexterslabor opened this issue 1 year ago • 3 comments

Environment

  • Expo version: 51
  • React Native version: 0.75.0
  • react-native-bignumber version: 0.2.3
  • Xcode version: 16

Description

When using react-native-bignumber 0.2.3 with Expo 51 and React Native 0.75.0, there's an incompatibility issue that requires manual patching of the react-native-bignumber.podspec file.

First, I want to express my appreciation for this amazing project. It has really helped me speed up development, especially with features like quick-crypto. Thank you for your hard work on this valuable tool.

Steps to Reproduce

  1. Set up a project with Expo 51 and React Native 0.75.0
  2. Install [email protected]
  3. Attempt to build the project

Expected Behavior

The project should build successfully without any manual modifications.

Actual Behavior

The build fails due to incompatibility issues with the react-native-bignumber.podspec file. Specifically, the xcodebuild command exits with error code 65. Here's the detailed error message:

› Compiling react-native-bignumber Pods/react-native-bignumber » MGBigNumberHostObject.cpp
› Compiling react-native-bignumber Pods/react-native-bignumber » BigNumberModule.mm
❌ fatal error: too many errors emitted, stopping now [-ferror-limit=]
› Compiling Pods/ReactCodegen » safeareacontextJSI-generated.cpp
› Compiling Pods/ReactCodegen » safeareacontext-generated.mm
› Compiling Pods/ReactCodegen » rnsvgJSI-generated.cpp
› Compiling Pods/ReactCodegen » rnsvg-generated.mm
› Compiling Pods/ReactCodegen » rnscreensJSI-generated.cpp
› Compiling Pods/ReactCodegen » rnscreens-generated.mm
› Compiling Pods/ReactCodegen » rnreanimatedJSI-generated.cpp
› Compiling Pods/ReactCodegen » rnreanimated-generated.mm
Run script build phase '[CP-User] [RN]Check rncore' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'React-FabricComponents' from project 'Pods')
Run script build phase '[CP-User] Generate app.config for prebuilt Constants.manifest' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'EXConstants' from project 'Pods')
› 1 error(s), and 4 warning(s)
CommandError: Failed to build iOS project. "xcodebuild" exited with error code 65.

Solution

A post-install script is required to patch the react-native-bignumber.podspec file. The patch adds the CLANG_CXX_LANGUAGE_STANDARD configuration to set the C++ standard to c++17.

Here's the diff of the changes:

--- node_modules/react-native-bignumber/react-native-bignumber.podspec 2024-09-24 12:57:52
+++ node_modules/react-native-bignumber/react-native-bignumber.podspec 2024-09-24 11:57:23
@@ -32,7 +32,8 @@
 "HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)/ReactCommon\" \"$(PODS_TARGET_SRCROOT)\" \"$(PODS_ROOT)/boost\" \"$(PODS_ROOT)/boost-for-react-native\" \"$(PODS_ROOT)/DoubleConversion\" \"$(PODS_ROOT)/Headers/Private/React-Core\" "
 }
 s.xcconfig = {
- "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\" \"$(PODS_ROOT)/boost-for-react-native\" \"$(PODS_ROOT)/glog\" \"${PODS_ROOT}/Headers/Public/React-hermes\" \"${PODS_ROOT}/Headers/Public/hermes-engine\""
+ "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\" \"$(PODS_ROOT)/boost-for-react-native\" \"$(PODS_ROOT)/glog\" \"${PODS_ROOT}/Headers/Public/React-hermes\" \"${PODS_ROOT}/Headers/Public/hermes-engine\"",
+ "CLANG_CXX_LANGUAGE_STANDARD" => "c++17"
 }
 s.dependency "OpenSSL-Universal", "~> 1.1.180"

Proposed Fix

Update the react-native-bignumber.podspec file in version 0.2.3 (and potentially future versions) to include the CLANG_CXX_LANGUAGE_STANDARD configuration by default, setting it to "c++17".

Additional Notes

This issue affects projects using react-native-bignumber 0.2.3 with newer versions of Expo and React Native. Implementing this fix in the package itself would prevent the need for manual patching and improve compatibility with current and future versions of Expo and React Native.

Once again, thank you for this fantastic project. Features like quick-crypto have been instrumental in speeding up our development process. We're looking forward to continuing to use and contribute to this project.

dexterslabor avatar Sep 25 '24 16:09 dexterslabor

Hi team, we are also upgrading from RN 0.74 to 0.75 with Expo 51 (51 supports both RN versions). Sharing the stack trace below if it helps. I was trying to build debug/dev variant of ios app while i faced this with [email protected].

Inside our app's project.pbxproj file, we've set CLANG_CXX_LANGUAGE_STANDARD = "c++20", even with RN 0.74.

Also found a similar issue in expo-av which they fixed with similar patch - https://github.com/expo/expo/pull/31072

View Stack Trace

CompileC /Users/ayush/Library/Developer/Xcode/DerivedData/LeapCosmosWallet-aieqbzeeofvilehfqxgzlgsgmnyi/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/react-native-bignumber.build/Objects-normal/x86_64/BigNumberModule.o /Users/ayush/dev/leap/leap-cosmos-mobile/node_modules/react-native-bignumber/ios/BigNumberModule.mm normal x86_64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'react-native-bignumber' from project 'Pods')
    cd /Users/ayush/dev/leap/leap-cosmos-mobile/ios/Pods
    
    Using response file: /Users/ayush/Library/Developer/Xcode/DerivedData/LeapCosmosWallet-aieqbzeeofvilehfqxgzlgsgmnyi/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/react-native-bignumber.build/Objects-normal/x86_64/af3fcb34312c57c0f52879cdce924b91-common-args.resp
    
    /Applications/Xcode-16.1.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c++ -ivfsstatcache /Users/ayush/Library/Developer/Xcode/DerivedData/SDKStatCaches.noindex/iphonesimulator18.1-22B74-df3584839c6172540e4318d30d854d47.sdkstatcache -fmessage-length\=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -fno-color-diagnostics -fmodules-prune-interval\=86400 -fmodules-prune-after\=345600 -fbuild-session-file\=/Users/ayush/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror\=non-modular-include-in-framework-module -Wno-trigraphs -Wno-missing-field-initializers -Wno-missing-prototypes -Werror\=return-type -Wdocumentation -Wunreachable-code -Wno-implicit-atomic-properties -Werror\=deprecated-objc-isa-usage -Wno-objc-interface-ivars -Werror\=objc-root-class -Wno-arc-repeated-use-of-weak -Wimplicit-retain-self -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-float-conversion -Wnon-literal-null-conversion -Wobjc-literal-conversion -Wshorten-64-to-32 -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wdeprecated-implementations -Wno-c++11-extensions -Wno-implicit-fallthrough -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -Winvalid-offsetof -Wno-sign-conversion -Winfinite-recursion -Wmove -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wrange-loop-analysis -Wno-semicolon-before-method-body -Wunguarded-availability -index-store-path /Users/ayush/Library/Developer/Xcode/DerivedData/LeapCosmosWallet-aieqbzeeofvilehfqxgzlgsgmnyi/Index.noindex/DataStore @/Users/ayush/Library/Developer/Xcode/DerivedData/LeapCosmosWallet-aieqbzeeofvilehfqxgzlgsgmnyi/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/react-native-bignumber.build/Objects-normal/x86_64/af3fcb34312c57c0f52879cdce924b91-common-args.resp -include /Users/ayush/dev/leap/leap-cosmos-mobile/ios/Pods/Target\ Support\ Files/react-native-bignumber/react-native-bignumber-prefix.pch -MMD -MT dependencies -MF /Users/ayush/Library/Developer/Xcode/DerivedData/LeapCosmosWallet-aieqbzeeofvilehfqxgzlgsgmnyi/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/react-native-bignumber.build/Objects-normal/x86_64/BigNumberModule.d --serialize-diagnostics /Users/ayush/Library/Developer/Xcode/DerivedData/LeapCosmosWallet-aieqbzeeofvilehfqxgzlgsgmnyi/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/react-native-bignumber.build/Objects-normal/x86_64/BigNumberModule.dia -c /Users/ayush/dev/leap/leap-cosmos-mobile/node_modules/react-native-bignumber/ios/BigNumberModule.mm -o /Users/ayush/Library/Developer/Xcode/DerivedData/LeapCosmosWallet-aieqbzeeofvilehfqxgzlgsgmnyi/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/react-native-bignumber.build/Objects-normal/x86_64/BigNumberModule.o -index-unit-output-path /Pods.build/Debug-iphonesimulator/react-native-bignumber.build/Objects-normal/x86_64/BigNumberModule.o

In file included from /Users/ayush/dev/leap/leap-cosmos-mobile/node_modules/react-native-bignumber/ios/BigNumberModule.mm:5:
In file included from /Users/ayush/dev/leap/leap-cosmos-mobile/ios/Pods/Headers/Public/React-NativeModulesApple/ReactCommon/RCTTurboModule.h:17:
In file included from /Users/ayush/dev/leap/leap-cosmos-mobile/ios/Pods/Headers/Public/React-callinvoker/ReactCommon/CallInvoker.h:13:
/Users/ayush/dev/leap/leap-cosmos-mobile/ios/Pods/Headers/Public/React-callinvoker/ReactCommon/SchedulerPriority.h:12:19: warning: nested namespace definition is a C++17 extension; define each namespace separately [-Wc++17-extensions]
   12 | namespace facebook::react {
      |                   ^~~~~~~
      |                    { namespace react
   13 | 
   14 | enum class SchedulerPriority : int {
   15 |   ImmediatePriority = 1,
   16 |   UserBlockingPriority = 2,
   17 |   NormalPriority = 3,
   18 |   LowPriority = 4,
   19 |   IdlePriority = 5,
   20 | };
   21 | 
   22 | } // namespace facebook::react
      | } 
In file included from /Users/ayush/dev/leap/leap-cosmos-mobile/node_modules/react-native-bignumber/ios/BigNumberModule.mm:5:
In file included from /Users/ayush/dev/leap/leap-cosmos-mobile/ios/Pods/Headers/Public/React-NativeModulesApple/ReactCommon/RCTTurboModule.h:17:
/Users/ayush/dev/leap/leap-cosmos-mobile/ios/Pods/Headers/Public/React-callinvoker/ReactCommon/CallInvoker.h:15:19: warning: nested namespace definition is a C++17 extension; define each namespace separately [-Wc++17-extensions]
   15 | namespace facebook::jsi {
      |                   ^~~~~
      |                    { namespace jsi
   16 | class Runtime;
   17 | }
      | } 
/Users/ayush/dev/leap/leap-cosmos-mobile/ios/Pods/Headers/Public/React-callinvoker/ReactCommon/CallInvoker.h:19:19: warning: nested namespace definition is a C++17 extension; define each namespace separately [-Wc++17-extensions]
   19 | namespace facebook::react {
      |                   ^~~~~~~
      |                    { namespace react
In file included from /Users/ayush/dev/leap/leap-cosmos-mobile/node_modules/react-native-bignumber/ios/BigNumberModule.mm:5:
In file included from /Users/ayush/dev/leap/leap-cosmos-mobile/ios/Pods/Headers/Public/React-NativeModulesApple/ReactCommon/RCTTurboModule.h:18:
In file included from /Users/ayush/dev/leap/leap-cosmos-mobile/ios/Pods/Headers/Public/ReactCommon/ReactCommon/TurboModule.h:17:
In file included from /Users/ayush/dev/leap/leap-cosmos-mobile/ios/Pods/Headers/Public/ReactCommon/react/bridging/EventEmitter.h:10:
In file included from /Users/ayush/dev/leap/leap-cosmos-mobile/ios/Pods/Headers/Public/ReactCommon/react/bridging/Function.h:10:
In file included from /Users/ayush/dev/leap/leap-cosmos-mobile/ios/Pods/Headers/Public/ReactCommon/react/bridging/Base.h:11:
/Users/ayush/dev/leap/leap-cosmos-mobile/ios/Pods/Headers/Public/ReactCommon/react/bridging/Convert.h:15:19: warning: nested namespace definition is a C++17 extension; define each namespace separately [-Wc++17-extensions]
   15 | namespace facebook::react::bridging {
      |                   ^~~~~~~~~~~~~~~~~
      |                    { namespace react { namespace bridging
/Users/ayush/dev/leap/leap-cosmos-mobile/ios/Pods/Headers/Public/ReactCommon/react/bridging/Convert.h:22:1: warning: inline variables are a C++17 extension [-Wc++17-extensions]
   22 | inline constexpr bool is_jsi_v =
      | ^
/Users/ayush/dev/leap/leap-cosmos-mobile/ios/Pods/Headers/Public/ReactCommon/react/bridging/Convert.h:23:10: error: no template named 'is_same_v' in namespace 'std'; did you mean 'is_same'?
   23 |     std::is_same_v<jsi::Value, remove_cvref_t<T>> ||
      |     ~~~~~^~~~~~~~~
      |          is_same
In file included from <built-in>:1:
In file included from /Users/ayush/dev/leap/leap-cosmos-mobile/ios/Pods/Target Support Files/react-native-bignumber/react-native-bignumber-prefix.pch:2:
In file included from /Applications/Xcode-16.1.0.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:8:
In file included from /Applications/Xcode-16.1.0.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
In file included from /Applications/Xcode-16.1.0.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.1.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:28:
In file included from /Applications/Xcode-16.1.0.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.1.sdk/usr/include/c++/v1/math.h:359:
In file included from /Applications/Xcode-16.1.0.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.1.sdk/usr/include/c++/v1/__math/copysign.h:15:
In file included from /Applications/Xcode-16.1.0.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.1.sdk/usr/include/c++/v1/__type_traits/promote.h:14:
/Applications/Xcode-16.1.0.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.1.sdk/usr/include/c++/v1/__type_traits/is_same.h:22:29: note: 'is_same' declared here
   22 | struct _LIBCPP_TEMPLATE_VIS is_same : _BoolConstant<__is_same(_Tp, _Up)> {};
      |                             ^
In file included from /Users/ayush/dev/leap/leap-cosmos-mobile/node_modules/react-native-bignumber/ios/BigNumberModule.mm:5:
In file included from /Users/ayush/dev/leap/leap-cosmos-mobile/ios/Pods/Headers/Public/React-NativeModulesApple/ReactCommon/RCTTurboModule.h:18:
In file included from /Users/ayush/dev/leap/leap-cosmos-mobile/ios/Pods/Headers/Public/ReactCommon/ReactCommon/TurboModule.h:17:
In file included from /Users/ayush/dev/leap/leap-cosmos-mobile/ios/Pods/Headers/Public/ReactCommon/react/bridging/EventEmitter.h:10:
In file included from /Users/ayush/dev/leap/leap-cosmos-mobile/ios/Pods/Headers/Public/ReactCommon/react/bridging/Function.h:10:
In file included from /Users/ayush/dev/leap/leap-cosmos-mobile/ios/Pods/Headers/Public/ReactCommon/react/bridging/Base.h:11:
/Users/ayush/dev/leap/leap-cosmos-mobile/ios/Pods/Headers/Public/ReactCommon/react/bridging/Convert.h:23:51: error: expected '(' for function-style cast or type construction
   23 |     std::is_same_v<jsi::Value, remove_cvref_t<T>> ||
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/ayush/dev/leap/leap-cosmos-mobile/ios/Pods/Headers/Public/ReactCommon/react/bridging/Convert.h:24:10: error: no template named 'is_same_v' in namespace 'std'; did you mean 'is_same'?
   24 |     std::is_same_v<jsi::String, remove_cvref_t<T>> ||
      |     ~~~~~^~~~~~~~~
      |          is_same
In file included from <built-in>:1:
In file included from /Users/ayush/dev/leap/leap-cosmos-mobile/ios/Pods/Target Support Files/react-native-bignumber/react-native-bignumber-prefix.pch:2:
In file included from /Applications/Xcode-16.1.0.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:8:
In file included from /Applications/Xcode-16.1.0.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
In file included from /Applications/Xcode-16.1.0.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.1.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:28:
In file included from /Applications/Xcode-16.1.0.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.1.sdk/usr/include/c++/v1/math.h:359:
In file included from /Applications/Xcode-16.1.0.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.1.sdk/usr/include/c++/v1/__math/copysign.h:15:
In file included from /Applications/Xcode-16.1.0.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.1.sdk/usr/include/c++/v1/__type_traits/promote.h:14:
/Applications/Xcode-16.1.0.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.1.sdk/usr/include/c++/v1/__type_traits/is_same.h:22:29: note: 'is_same' declared here
   22 | struct _LIBCPP_TEMPLATE_VIS is_same : _BoolConstant<__is_same(_Tp, _Up)> {};
      |                             ^
In file included from /Users/ayush/dev/leap/leap-cosmos-mobile/node_modules/react-native-bignumber/ios/BigNumberModule.mm:5:
In file included from /Users/ayush/dev/leap/leap-cosmos-mobile/ios/Pods/Headers/Public/React-NativeModulesApple/ReactCommon/RCTTurboModule.h:18:
In file included from /Users/ayush/dev/leap/leap-cosmos-mobile/ios/Pods/Headers/Public/ReactCommon/ReactCommon/TurboModule.h:17:
In file included from /Users/ayush/dev/leap/leap-cosmos-mobile/ios/Pods/Headers/Public/ReactCommon/react/bridging/EventEmitter.h:10:
In file included from /Users/ayush/dev/leap/leap-cosmos-mobile/ios/Pods/Headers/Public/ReactCommon/react/bridging/Function.h:10:
In file included from /Users/ayush/dev/leap/leap-cosmos-mobile/ios/Pods/Headers/Public/ReactCommon/react/bridging/Base.h:11:
/Users/ayush/dev/leap/leap-cosmos-mobile/ios/Pods/Headers/Public/ReactCommon/react/bridging/Convert.h:24:52: error: expected '(' for function-style cast or type construction
   24 |     std::is_same_v<jsi::String, remove_cvref_t<T>> ||
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/ayush/dev/leap/leap-cosmos-mobile/ios/Pods/Headers/Public/ReactCommon/react/bridging/Convert.h:25:10: error: no template named 'is_base_of_v' in namespace 'std'; did you mean 'is_base_of'?
   25 |     std::is_base_of_v<jsi::Object, remove_cvref_t<T>>;
      |     ~~~~~^~~~~~~~~~~~
      |          is_base_of
In file included from <built-in>:1:
In file included from /Users/ayush/dev/leap/leap-cosmos-mobile/ios/Pods/Target Support Files/react-native-bignumber/react-native-bignumber-prefix.pch:2:
In file included from /Applications/Xcode-16.1.0.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:8:
In file included from /Applications/Xcode-16.1.0.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
In file included from /Applications/Xcode-16.1.0.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.1.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:28:
In file included from /Applications/Xcode-16.1.0.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.1.sdk/usr/include/c++/v1/math.h:359:
In file included from /Applications/Xcode-16.1.0.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.1.sdk/usr/include/c++/v1/__math/copysign.h:16:
In file included from /Applications/Xcode-16.1.0.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.1.sdk/usr/include/c++/v1/limits:819:
In file included from /Applications/Xcode-16.1.0.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.1.sdk/usr/include/c++/v1/type_traits:445:
In file included from /Applications/Xcode-16.1.0.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.1.sdk/usr/include/c++/v1/__type_traits/invoke.h:20:
/Applications/Xcode-16.1.0.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.1.sdk/usr/include/c++/v1/__type_traits/is_base_of.h:22:29: note: 'is_base_of' declared here
   22 | struct _LIBCPP_TEMPLATE_VIS is_base_of : public integral_constant<bool, __is_base_of(_Bp, _Dp)> {};
      |                             ^
In file included from /Users/ayush/dev/leap/leap-cosmos-mobile/node_modules/react-native-bignumber/ios/BigNumberModule.mm:5:
In file included from /Users/ayush/dev/leap/leap-cosmos-mobile/ios/Pods/Headers/Public/React-NativeModulesApple/ReactCommon/RCTTurboModule.h:18:
In file included from /Users/ayush/dev/leap/leap-cosmos-mobile/ios/Pods/Headers/Public/ReactCommon/ReactCommon/TurboModule.h:17:
In file included from /Users/ayush/dev/leap/leap-cosmos-mobile/ios/Pods/Headers/Public/ReactCommon/react/bridging/EventEmitter.h:10:
In file included from /Users/ayush/dev/leap/leap-cosmos-mobile/ios/Pods/Headers/Public/ReactCommon/react/bridging/Function.h:10:
In file included from /Users/ayush/dev/leap/leap-cosmos-mobile/ios/Pods/Headers/Public/ReactCommon/react/bridging/Base.h:11:
/Users/ayush/dev/leap/leap-cosmos-mobile/ios/Pods/Headers/Public/ReactCommon/react/bridging/Convert.h:25:54: error: expected '(' for function-style cast or type construction
   25 |     std::is_base_of_v<jsi::Object, remove_cvref_t<T>>;
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
/Users/ayush/dev/leap/leap-cosmos-mobile/ios/Pods/Headers/Public/ReactCommon/react/bridging/Convert.h:31:25: error: no member named 'optional' in namespace 'std'
   31 | struct is_optional<std::optional<T>> : std::true_type {};
      |                    ~~~~~^
/Users/ayush/dev/leap/leap-cosmos-mobile/ios/Pods/Headers/Public/ReactCommon/react/bridging/Convert.h:31:34: error: 'T' does not refer to a value
   31 | struct is_optional<std::optional<T>> : std::true_type {};
      |                                  ^
/Users/ayush/dev/leap/leap-cosmos-mobile/ios/Pods/Headers/Public/ReactCommon/react/bridging/Convert.h:30:20: note: declared here
   30 | template <typename T>
      |                    ^
/Users/ayush/dev/leap/leap-cosmos-mobile/ios/Pods/Headers/Public/ReactCommon/react/bridging/Convert.h:31:36: error: expected unqualified-id
   31 | struct is_optional<std::optional<T>> : std::true_type {};
      |                                    ^
/Users/ayush/dev/leap/leap-cosmos-mobile/ios/Pods/Headers/Public/ReactCommon/react/bridging/Convert.h:34:1: warning: inline variables are a C++17 extension [-Wc++17-extensions]
   34 | inline constexpr bool is_optional_v = is_optional<T>::value;
      | ^
/Users/ayush/dev/leap/leap-cosmos-mobile/ios/Pods/Headers/Public/ReactCommon/react/bridging/Convert.h:37:1: warning: inline variables are a C++17 extension [-Wc++17-extensions]
   37 | inline constexpr bool is_optional_jsi_v = false;
      | ^
/Users/ayush/dev/leap/leap-cosmos-mobile/ios/Pods/Headers/Public/ReactCommon/react/bridging/Convert.h:40:1: warning: inline variables are a C++17 extension [-Wc++17-extensions]
   40 | inline constexpr bool
      | ^
/Users/ayush/dev/leap/leap-cosmos-mobile/ios/Pods/Headers/Public/ReactCommon/react/bridging/Convert.h:78:16: error: no template named 'is_lvalue_reference_v' in namespace 'std'; did you mean 'is_lvalue_reference'?
   78 |           std::is_lvalue_reference_v<T> &&
      |           ~~~~~^~~~~~~~~~~~~~~~~~~~~
      |                is_lvalue_reference
In file included from <built-in>:1:
In file included from /Users/ayush/dev/leap/leap-cosmos-mobile/ios/Pods/Target Support Files/react-native-bignumber/react-native-bignumber-prefix.pch:2:
In file included from /Applications/Xcode-16.1.0.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:8:
In file included from /Applications/Xcode-16.1.0.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
In file included from /Applications/Xcode-16.1.0.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.1.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:28:
In file included from /Applications/Xcode-16.1.0.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.1.sdk/usr/include/c++/v1/math.h:359:
In file included from /Applications/Xcode-16.1.0.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.1.sdk/usr/include/c++/v1/__math/copysign.h:16:
In file included from /Applications/Xcode-16.1.0.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.1.sdk/usr/include/c++/v1/limits:819:
In file included from /Applications/Xcode-16.1.0.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.1.sdk/usr/include/c++/v1/type_traits:433:
In file included from /Applications/Xcode-16.1.0.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.1.sdk/usr/include/c++/v1/__type_traits/common_reference.h:13:
In file included from /Applications/Xcode-16.1.0.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.1.sdk/usr/include/c++/v1/__type_traits/common_type.h:14:
In file included from /Applications/Xcode-16.1.0.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.1.sdk/usr/include/c++/v1/__type_traits/decay.h:16:
In file included from /Applications/Xcode-16.1.0.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.1.sdk/usr/include/c++/v1/__type_traits/is_function.h:15:
/Applications/Xcode-16.1.0.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.1.sdk/usr/include/c++/v1/__type_traits/is_reference.h:24:29: note: 'is_lvalue_reference' declared here
   24 | struct _LIBCPP_TEMPLATE_VIS is_lvalue_reference : _BoolConstant<__is_lvalue_reference(_Tp)> {};
      |                             ^
In file included from /Users/ayush/dev/leap/leap-cosmos-mobile/node_modules/react-native-bignumber/ios/BigNumberModule.mm:5:
In file included from /Users/ayush/dev/leap/leap-cosmos-mobile/ios/Pods/Headers/Public/React-NativeModulesApple/ReactCommon/RCTTurboModule.h:18:
In file included from /Users/ayush/dev/leap/leap-cosmos-mobile/ios/Pods/Headers/Public/ReactCommon/ReactCommon/TurboModule.h:17:
In file included from /Users/ayush/dev/leap/leap-cosmos-mobile/ios/Pods/Headers/Public/ReactCommon/react/bridging/EventEmitter.h:10:
In file included from /Users/ayush/dev/leap/leap-cosmos-mobile/ios/Pods/Headers/Public/ReactCommon/react/bridging/Function.h:10:
In file included from /Users/ayush/dev/leap/leap-cosmos-mobile/ios/Pods/Headers/Public/ReactCommon/react/bridging/Base.h:11:
/Users/ayush/dev/leap/leap-cosmos-mobile/ios/Pods/Headers/Public/ReactCommon/react/bridging/Convert.h:80:20: error: no template named 'is_convertible_v' in namespace 'std'; did you mean 'is_convertible'?
   80 |               std::is_convertible_v<Converter<BaseT>, U>,
      |               ~~~~~^~~~~~~~~~~~~~~~
      |                    is_convertible
In file included from <built-in>:1:
In file included from /Users/ayush/dev/leap/leap-cosmos-mobile/ios/Pods/Target Support Files/react-native-bignumber/react-native-bignumber-prefix.pch:2:
In file included from /Applications/Xcode-16.1.0.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:8:
In file included from /Applications/Xcode-16.1.0.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
In file included from /Applications/Xcode-16.1.0.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.1.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:28:
In file included from /Applications/Xcode-16.1.0.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.1.sdk/usr/include/c++/v1/math.h:359:
In file included from /Applications/Xcode-16.1.0.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.1.sdk/usr/include/c++/v1/__math/copysign.h:16:
In file included from /Applications/Xcode-16.1.0.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.1.sdk/usr/include/c++/v1/limits:819:
In file included from /Applications/Xcode-16.1.0.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.1.sdk/usr/include/c++/v1/type_traits:433:
In file included from /Applications/Xcode-16.1.0.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.1.sdk/usr/include/c++/v1/__type_traits/common_reference.h:16:
/Applications/Xcode-16.1.0.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.1.sdk/usr/include/c++/v1/__type_traits/is_convertible.h:28:29: note: 'is_convertible' declared here
   28 | struct _LIBCPP_TEMPLATE_VIS is_convertible : public integral_constant<bool, __is_convertible(_T1, _T2)> {};
      |                             ^
In file included from /Users/ayush/dev/leap/leap-cosmos-mobile/node_modules/react-native-bignumber/ios/BigNumberModule.mm:5:
In file included from /Users/ayush/dev/leap/leap-cosmos-mobile/ios/Pods/Headers/Public/React-NativeModulesApple/ReactCommon/RCTTurboModule.h:18:
In file included from /Users/ayush/dev/leap/leap-cosmos-mobile/ios/Pods/Headers/Public/ReactCommon/ReactCommon/TurboModule.h:17:
In file included from /Users/ayush/dev/leap/leap-cosmos-mobile/ios/Pods/Headers/Public/ReactCommon/react/bridging/EventEmitter.h:10:
In file included from /Users/ayush/dev/leap/leap-cosmos-mobile/ios/Pods/Headers/Public/ReactCommon/react/bridging/Function.h:10:
In file included from /Users/ayush/dev/leap/leap-cosmos-mobile/ios/Pods/Headers/Public/ReactCommon/react/bridging/Base.h:11:
/Users/ayush/dev/leap/leap-cosmos-mobile/ios/Pods/Headers/Public/ReactCommon/react/bridging/Convert.h:80:56: error: expected '>'
   80 |               std::is_convertible_v<Converter<BaseT>, U>,
      |                                                        ^
/Users/ayush/dev/leap/leap-cosmos-mobile/ios/Pods/Headers/Public/ReactCommon/react/bridging/Convert.h:77:23: note: to match this '<'
   77 |       std::enable_if_t<
      |                       ^
/Users/ayush/dev/leap/leap-cosmos-mobile/ios/Pods/Headers/Public/ReactCommon/react/bridging/Convert.h:80:20: error: parameter declarator cannot be qualified
   80 |               std::is_convertible_v<Converter<BaseT>, U>,
      |               ~~~~~^
/Users/ayush/dev/leap/leap-cosmos-mobile/ios/Pods/Headers/Public/ReactCommon/react/bridging/Convert.h:80:20: error: parameter name cannot have template arguments
/Users/ayush/dev/leap/leap-cosmos-mobile/ios/Pods/Headers/Public/ReactCommon/react/bridging/Convert.h:81:16: error: expected member name or ';' after declaration specifiers
   81 |           int> = 0>
      |                ^
/Users/ayush/dev/leap/leap-cosmos-mobile/ios/Pods/Headers/Public/ReactCommon/react/bridging/Convert.h:55:8: warning: constexpr if is a C++17 extension [-Wc++17-extensions]
   55 |     if constexpr (std::is_lvalue_reference_v<T>) {
      |        ^
/Users/ayush/dev/leap/leap-cosmos-mobile/ios/Pods/Headers/Public/ReactCommon/react/bridging/Convert.h:55:24: error: no template named 'is_lvalue_reference_v' in namespace 'std'; did you mean 'is_lvalue_reference'?
   55 |     if constexpr (std::is_lvalue_reference_v<T>) {
      |                   ~~~~~^~~~~~~~~~~~~~~~~~~~~
      |                        is_lvalue_reference
In file included from <built-in>:1:
In file included from /Users/ayush/dev/leap/leap-cosmos-mobile/ios/Pods/Target Support Files/react-native-bignumber/react-native-bignumber-prefix.pch:2:
In file included from /Applications/Xcode-16.1.0.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:8:
In file included from /Applications/Xcode-16.1.0.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
In file included from /Applications/Xcode-16.1.0.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.1.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:28:
In file included from /Applications/Xcode-16.1.0.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.1.sdk/usr/include/c++/v1/math.h:359:
In file included from /Applications/Xcode-16.1.0.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.1.sdk/usr/include/c++/v1/__math/copysign.h:16:
In file included from /Applications/Xcode-16.1.0.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.1.sdk/usr/include/c++/v1/limits:819:
In file included from /Applications/Xcode-16.1.0.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.1.sdk/usr/include/c++/v1/type_traits:433:
In file included from /Applications/Xcode-16.1.0.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.1.sdk/usr/include/c++/v1/__type_traits/common_reference.h:13:
In file included from /Applications/Xcode-16.1.0.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.1.sdk/usr/include/c++/v1/__type_traits/common_type.h:14:
In file included from /Applications/Xcode-16.1.0.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.1.sdk/usr/include/c++/v1/__type_traits/decay.h:16:
In file included from /Applications/Xcode-16.1.0.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.1.sdk/usr/include/c++/v1/__type_traits/is_function.h:15:
/Applications/Xcode-16.1.0.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.1.sdk/usr/include/c++/v1/__type_traits/is_reference.h:24:29: note: 'is_lvalue_reference' declared here
   24 | struct _LIBCPP_TEMPLATE_VIS is_lvalue_reference : _BoolConstant<__is_lvalue_reference(_Tp)> {};
      |                             ^
In file included from /Users/ayush/dev/leap/leap-cosmos-mobile/node_modules/react-native-bignumber/ios/BigNumberModule.mm:5:
In file included from /Users/ayush/dev/leap/leap-cosmos-mobile/ios/Pods/Headers/Public/React-NativeModulesApple/ReactCommon/RCTTurboModule.h:18:
In file included from /Users/ayush/dev/leap/leap-cosmos-mobile/ios/Pods/Headers/Public/ReactCommon/ReactCommon/TurboModule.h:17:
In file included from /Users/ayush/dev/leap/leap-cosmos-mobile/ios/Pods/Headers/Public/ReactCommon/react/bridging/EventEmitter.h:10:
In file included from /Users/ayush/dev/leap/leap-cosmos-mobile/ios/Pods/Headers/Public/ReactCommon/react/bridging/Function.h:10:
In file included from /Users/ayush/dev/leap/leap-cosmos-mobile/ios/Pods/Headers/Public/ReactCommon/react/bridging/Base.h:11:
/Users/ayush/dev/leap/leap-cosmos-mobile/ios/Pods/Headers/Public/ReactCommon/react/bridging/Convert.h:55:48: error: expected unqualified-id
   55 |     if constexpr (std::is_lvalue_reference_v<T>) {
      |                                                ^
/Users/ayush/dev/leap/leap-cosmos-mobile/ios/Pods/Headers/Public/ReactCommon/react/bridging/Convert.h:59:10: warning: constexpr if is a C++17 extension [-Wc++17-extensions]
   59 |       if constexpr (std::is_same_v<BaseT, jsi::Value>) {
      |          ^
/Users/ayush/dev/leap/leap-cosmos-mobile/ios/Pods/Headers/Public/ReactCommon/react/bridging/Convert.h:59:26: error: no template named 'is_same_v' in namespace 'std'; did you mean 'is_same'?
   59 |       if constexpr (std::is_same_v<BaseT, jsi::Value>) {
      |                     ~~~~~^~~~~~~~~
      |                          is_same
In file included from <built-in>:1:
In file included from /Users/ayush/dev/leap/leap-cosmos-mobile/ios/Pods/Target Support Files/react-native-bignumber/react-native-bignumber-prefix.pch:2:
In file included from /Applications/Xcode-16.1.0.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:8:
In file included from /Applications/Xcode-16.1.0.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
In file included from /Applications/Xcode-16.1.0.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.1.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:28:
In file included from /Applications/Xcode-16.1.0.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.1.sdk/usr/include/c++/v1/math.h:359:
In file included from /Applications/Xcode-16.1.0.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.1.sdk/usr/include/c++/v1/__math/copysign.h:15:
In file included from /Applications/Xcode-16.1.0.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.1.sdk/usr/include/c++/v1/__type_traits/promote.h:14:
/Applications/Xcode-16.1.0.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.1.sdk/usr/include/c++/v1/__type_traits/is_same.h:22:29: note: 'is_same' declared here
   22 | struct _LIBCPP_TEMPLATE_VIS is_same : _BoolConstant<__is_same(_Tp, _Up)> {};
      |                             ^
In file included from /Users/ayush/dev/leap/leap-cosmos-mobile/node_modules/react-native-bignumber/ios/BigNumberModule.mm:5:
In file included from /Users/ayush/dev/leap/leap-cosmos-mobile/ios/Pods/Headers/Public/React-NativeModulesApple/ReactCommon/RCTTurboModule.h:18:
In file included from /Users/ayush/dev/leap/leap-cosmos-mobile/ios/Pods/Headers/Public/ReactCommon/ReactCommon/TurboModule.h:17:
In file included from /Users/ayush/dev/leap/leap-cosmos-mobile/ios/Pods/Headers/Public/ReactCommon/react/bridging/EventEmitter.h:10:
In file included from /Users/ayush/dev/leap/leap-cosmos-mobile/ios/Pods/Headers/Public/ReactCommon/react/bridging/Function.h:10:
In file included from /Users/ayush/dev/leap/leap-cosmos-mobile/ios/Pods/Headers/Public/ReactCommon/react/bridging/Base.h:11:
/Users/ayush/dev/leap/leap-cosmos-mobile/ios/Pods/Headers/Public/ReactCommon/react/bridging/Convert.h:59:54: error: expected unqualified-id
   59 |       if constexpr (std::is_same_v<BaseT, jsi::Value>) {
      |                                                      ^
/Users/ayush/dev/leap/leap-cosmos-mobile/ios/Pods/Headers/Public/ReactCommon/react/bridging/Convert.h:61:17: warning: constexpr if is a C++17 extension [-Wc++17-extensions]
   61 |       } else if constexpr (std::is_same_v<BaseT, jsi::String>) {
      |                 ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
11 warnings and 20 errors generated.

Image

ayush-leap avatar Aug 08 '25 06:08 ayush-leap

btw @dexterslabor, have you folks pushed this patch to prod? assuming it didn't break anything or required any further modifications inside the app/library/dependent-libraries to make it work?

ayush-leap avatar Aug 08 '25 07:08 ayush-leap

I just built the debug variant of ios app with below patch and it built successfully 🎉

I used c++20, but i'm unsure if it's breaking change for this library or not.

diff --git a/node_modules/react-native-bignumber/react-native-bignumber.podspec b/node_modules/react-native-bignumber/react-native-bignumber.podspec
index fef2f9b..272246e 100644
--- a/node_modules/react-native-bignumber/react-native-bignumber.podspec
+++ b/node_modules/react-native-bignumber/react-native-bignumber.podspec
@@ -32,7 +32,8 @@ Pod::Spec.new do |s|
     "HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)/ReactCommon\" \"$(PODS_TARGET_SRCROOT)\"  \"$(PODS_ROOT)/boost\" \"$(PODS_ROOT)/boost-for-react-native\" \"$(PODS_ROOT)/DoubleConversion\" \"$(PODS_ROOT)/Headers/Private/React-Core\" "
   }
   s.xcconfig               = {
-    "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\" \"$(PODS_ROOT)/boost-for-react-native\" \"$(PODS_ROOT)/glog\"  \"${PODS_ROOT}/Headers/Public/React-hermes\" \"${PODS_ROOT}/Headers/Public/hermes-engine\""
+    "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\" \"$(PODS_ROOT)/boost-for-react-native\" \"$(PODS_ROOT)/glog\"  \"${PODS_ROOT}/Headers/Public/React-hermes\" \"${PODS_ROOT}/Headers/Public/hermes-engine\"",
+    "CLANG_CXX_LANGUAGE_STANDARD" => "c++20"
   }
 
   s.dependency "OpenSSL-Universal", "~> 1.1.180"

ayush-leap avatar Aug 08 '25 07:08 ayush-leap