-
Notifications
You must be signed in to change notification settings - Fork 221
Description
Description
Hi all,
I think this is related to how turbo is setup to handle cocoapods cache, therefore it may be a bug.
Basically I've got a library that supports both the old architecture and the new one.
My github action that runs: build:ios, fails saying the following:
The following build commands failed:
2024-05-23T23:19:55.9038470Z CompileC /Users/runner/Library/Developer/Xcode/DerivedData/OrientationDirectorExample-cmbpwsqgntorrdetrsbzengqrrls/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/React-Codegen.build/Objects-normal/x86_64/RNOrientationDirectorSpecJSI-generated.o /Users/runner/work/react-native-orientation-director/react-native-orientation-director/example/ios/build/generated/ios/RNOrientationDirectorSpecJSI-generated.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'React-Codegen' from project 'Pods')
2024-05-23T23:19:55.9043380Z CompileC /Users/runner/Library/Developer/Xcode/DerivedData/OrientationDirectorExample-cmbpwsqgntorrdetrsbzengqrrls/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/React-Codegen.build/Objects-normal/x86_64/FBReactNativeSpecJSI-generated.o /Users/runner/work/react-native-orientation-director/react-native-orientation-director/example/ios/build/generated/ios/FBReactNativeSpecJSI-generated.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'React-Codegen' from project 'Pods')
It expects the output of Codegen (If i'm not mistaken) but my example app is not setup to build with the new architecture, so I don't understand how to properly fix this behaviour.
Locally i can't reproduce this issue, it runs smoothly.
Is it related to the pushed Podfile.lock?
If i delete the Podfile.lock, turbo resets the cocoapods cache and everything runs successfully, but I can't reset it everytime, I don't think that is the solution.
Has anyone got any idea?
My experience with Turbo is non-existent, so every help is really appreciated.
Thanks!
Packages
- create-react-native-library
- react-native-builder-bob
Selected options
β What is the name of the npm package? react-native-orientation-director
β What is the description for the package?
β What is the name of package author? gladiuscode
β What is the email address for the package author?
β What is the URL for the package author?
β What is the URL for the repository? https://github.com/gladiuscode/react-native-orientation-director
β What type of library do you want to develop? βΊ Turbo module with backward compat
β Which languages do you want to use? βΊ Kotlin & Objective-C
Link to repro
gladiuscode/react-native-orientation-director#1
Environment
React Native v74
Node 18
Yarn 3.x