callstack / react-native-builder-bob

👷‍♂️ Simple set of CLIs to scaffold and build React Native libraries for different targets
https://callstack.github.io/react-native-builder-bob/
2.78k stars 184 forks source link

Error during build-ios workflow action #528

Closed mattiaferrari02 closed 5 months ago

mattiaferrari02 commented 8 months ago

Description

I'm running the github action to build the ios app, but the action fails because hermes can't find node. I had the .xcode.env.local committed and gave an error. Then i gitignored it but the error presisted. from the log i can see that the error is located here /Users/runner/Library/Developer/Xcode/DerivedData/MyApp-fdppxdaabfbsnhbrtydartoiatka/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/hermes-engine.build/Script-46EB2E00015D40.sh: line 9: /private/var/folders/qv/pdh5wsgn0lq3dp77zj602b5c0000gn/T/xfs-d0d113ba/node: No such file or directory

Packages

Selected options

turbo module c++ for android an ios

Link to repro

https://github.com/mattiaferrari02/react-native-test-module

Environment

The problem is on the action so i don't think that my environment matters but ok

System: OS: macOS 12.6.8 CPU: (8) arm64 Apple M1 Memory: 158.95 MB / 16.00 GB Shell: version: 5.8.1 path: /bin/zsh Binaries: Node: version: 18.19.0 path: ~/.nvm/versions/node/v18.19.0/bin/node Yarn: version: 3.6.1 path: ~/.nvm/versions/node/v18.19.0/bin/yarn npm: version: 10.2.3 path: ~/.nvm/versions/node/v18.19.0/bin/npm Watchman: version: 2023.03.13.00 path: /opt/homebrew/bin/watchman Managers: CocoaPods: version: 1.12.0 path: /opt/homebrew/bin/pod SDKs: iOS SDK: Platforms:

satya164 commented 8 months ago

Try making this change in your project https://github.com/callstack/react-native-builder-bob/commit/5217411632505b40b01b7dbee39c888eccb81639