react-native-vision-camera: CLANG_CXX_LANGUAGE_STANDARD mismatch for iOS podspecs
What were you trying to do?
package.json dependencies:
"react-native": "0.70.3",
"react-native-reanimated": "^2.11.0",
"react-native-vision-camera": "^2.14.1"
empty project initialization fails on: pod install
Reproduceable Code
N/A
What happened instead?
Pods installation fails.
Quite obviously, VisionCamera.podspec.json have:
{
"xcconfig": {
"CLANG_CXX_LANGUAGE_STANDARD": "c++14",
"HEADER_SEARCH_PATHS": "\"$(PODS_ROOT)/boost\" \"$(PODS_ROOT)/boost-for-react-native\" \"$(PODS_ROOT)/glog\" \"$(PODS_ROOT)/RCT-Folly\" \"${PODS_ROOT}/Headers/Public/React-hermes\" \"${PODS_ROOT}/Headers/Public/hermes-engine\"",
"OTHER_CFLAGS": "$(inherited) -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DRNVERSION=70"
}
}
While hermes-engine.podspec.json have:
{
"xcconfig": {
"CLANG_CXX_LANGUAGE_STANDARD": "c++17",
"CLANG_CXX_LIBRARY": "compiler-default",
"GCC_PREPROCESSOR_DEFINITIONS": "HERMES_ENABLE_DEBUGGER=1"
}
}
Relevant log output
[!] Can't merge user_target_xcconfig for pod targets: ["VisionCamera", "hermes-engine"]. Singular build setting CLANG_CXX_LANGUAGE_STANDARD has different values.
Device
N/A
VisionCamera Version
2.14.1
Additional information
- I am using Expo
- I have read the Troubleshooting Guide
- I agree to follow this project’s Code of Conduct
- I searched for similar issues in this repository and found none.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 2
- Comments: 15 (5 by maintainers)
@mrousavy I was still having issues after #1309 so I dug in and found the fix was in the wrong place. Made #1432 to correct this.
I have the same issue, bumping the value should do it.
@Rustamyan94 Ok, I will check
It’s helped me. run
npx pod-install
Instead,cd ios && pod install cd ..
And I don’t see any reason why not just bumping CLANG_CXX_LANGUAGE_STANDARD to
c++17
: iOS stack uses Swift anyway…