Can't merge user_target_xcconfig for pod targets
See original GitHub issueVersion
LibTorch-Lite (1.12.0), react-native-pytorch-core (0.2.2)
Problem Area
react-native-pytorch-core (core package)
Steps to Reproduce
Environment:
- MacBook Air m1 Ventura 13.0
- Darwin MacBook-Air.local 22.1.0 Darwin Kernel Version 22.1.0: Sun Oct 9 20:14:30 PDT 2022; root:xnu-8792.41.9~2/RELEASE_ARM64_T8103 arm64
- npx --version 8.3.1
- packaage.json
{
"name": "myapp",
"version": "0.0.1",
"private": true,
"scripts": {
"android": "react-native run-android",
"ios": "react-native run-ios",
"start": "react-native start",
"test": "jest",
"lint": "eslint ."
},
"dependencies": {
"react": "18.1.0",
"react-native": "0.70.5",
"react-native-pytorch-core": "^0.2.2"
},
"devDependencies": {
"@babel/core": "^7.12.9",
"@babel/runtime": "^7.12.5",
"@react-native-community/eslint-config": "^2.0.0",
"babel-jest": "^26.6.3",
"eslint": "^7.32.0",
"jest": "^26.6.3",
"metro-react-native-babel-preset": "0.72.3",
"react-test-renderer": "18.1.0"
},
"jest": {
"preset": "react-native"
}
}
- npx react-native init myapp
- cd myapp/ios && pod install
- cd …
- npm install react-native-pytorch-core
- cd ios && pod install
Integrating client project Pod installation complete! There are 60 dependencies from the Podfile and 51 total pods installed.
[!] Can’t merge user_target_xcconfig for pod targets: [“LibTorch-Lite”, “Core”, “Torch”, “hermes-engine”]. Singular build setting CLANG_CXX_LANGUAGE_STANDARD has different values.
[!] Can’t merge user_target_xcconfig for pod targets: [“LibTorch-Lite”, “Core”, “Torch”, “hermes-engine”]. Singular build setting CLANG_CXX_LIBRARY has different values.
[!] Can’t merge user_target_xcconfig for pod targets: [“LibTorch-Lite”, “Core”, “Torch”, “hermes-engine”]. Singular build setting CLANG_CXX_LANGUAGE_STANDARD has different values.
[!] Can’t merge user_target_xcconfig for pod targets: [“LibTorch-Lite”, “Core”, “Torch”, “hermes-engine”]. Singular build setting CLANG_CXX_LIBRARY has different values.
[!] Can’t merge user_target_xcconfig for pod targets: [“LibTorch-Lite”, “Core”, “Torch”, “hermes-engine”]. Singular build setting CLANG_CXX_LANGUAGE_STANDARD has different values.
[!] Can’t merge user_target_xcconfig for pod targets: [“LibTorch-Lite”, “Core”, “Torch”, “hermes-engine”]. Singular build setting CLANG_CXX_LIBRARY has different values.
Expected Results
Dont expect to see the “Can’t merge user_target_xcconfig for pod targets” messagesDon’t
Code example, screenshot, or link to repository
No response
Issue Analytics
- State:
- Created 10 months ago
- Comments:6 (1 by maintainers)
Here is my Podfile. There are some options that you might want to turn on or off:
@shahidjabbar thanks for the idea. I tried Rosetta mode and cleaning the derived data directory and that did not help. I wonder if the problem is related to user_target_xcconfig being used in https://github.com/pytorch/pytorch/blob/master/ios/LibTorch.podspec#L25
I read from another project (https://code.videolan.org/videolan/VLCKit/-/issues/498) that user_target_xcconfig has been deprecated and should be avoided.