Command PhaseScriptExecution failed with a nonzero exit code on iOS build (Example Project)
Closed this issue · 1 comments
Hello maintainers and community,
I have been trying to integrate Unity with my React Native app using the react-native-unity package. I am currently working with the example project provided by the library. However, when I attempt to build the project for iOS, I encounter the following error:
Command PhaseScriptExecution failed with a nonzero exit code
Steps to Reproduce:
Open react-native-unity example app
Configure the iOS project following the documentation
Build the project from Xcode
Environment:
React Native version: 0.67.4
React Native Unity version: 0.3.1
Unity version: 2021.1.19f1
Xcode version: 14.1 (14B47b)
Node.js version: v18.16.0
NPM/Yarn version: 1.22.19(yarn)
Platform: iOS
Device: iPhone 12 mini / iOS 16.4.1
I have tried various troubleshooting methods, such as cleaning the build folder, restarting Xcode, and re-installing node modules, but the error persists.
Any assistance in resolving this issue would be greatly appreciated. Thank you for your time and support.
Best Regards,
Beka Zandukeli
This was a problem on my end, just doing:
- Remove
node_modules
- Removed
Pods
folswe yarn
cd ios; pod install; cd ..
Resolved the issue.
Also for similar errors, this is a good resource: https://reactnative.dev/docs/new-architecture-troubleshooting#xcode-build-issues