Command PhaseScriptExecution failed with a nonzero exit code - Error when buils on Xcode 14.3
Description
I'm facing this issue while running the IOS app on M1 Mac only. It works fine in an intel chip Mac.
React Native Version
0.72.1
Output of npx react-native info
OS: macOS 13.2.1 CPU: (8) arm64 Apple M1 Pro Memory: 80.50 MB / 16.00 GB Shell: version: 5.8.1 path: /bin/zsh Binaries: Node: version: 16.14.0 path: /usr/local/bin/node Yarn: version: 1.22.17 path: /usr/local/bin/yarn npm: version: 8.3.1 path: /usr/local/bin/npm Watchman: Not Found Managers: CocoaPods: version: 1.12.1 path: /usr/local/bin/pod SDKs: iOS SDK: Platforms: - DriverKit 22.4 - iOS 16.4 - macOS 13.3 - tvOS 16.4 - watchOS 9.4 Android SDK: API Levels: - "29" - "30" - "31" - "32" - "33" Build Tools: - 28.0.3 - 30.0.2 - 30.0.3 - 31.0.0 - 32.0.0 - 32.1.0 - 33.0.0 System Images: - android-29 | Google APIs ARM 64 v8a - android-30 | Google Play ARM 64 v8a - android-31 | Google TV ARM 64 v8a - android-32 | Google APIs ARM 64 v8a Android NDK: Not Found IDEs: Android Studio: 2021.1 AI-211.7628.21.2111.8193401 Xcode: version: 14.3.1/14E300c path: /usr/bin/xcodebuild Languages: Java: version: 1.8.0_202 path: /usr/bin/javac Ruby: version: 2.6.10 path: /usr/bin/ruby npmPackages: "@react-native-community/cli": Not Found react: Not Found react-native: Not Found react-native-macos: Not Found npmGlobalPackages: "react-native": Not Found Android: hermesEnabled: true newArchEnabled: false iOS: hermesEnabled: true newArchEnabled: false
Steps to reproduce
There is no special steps to reproduce this. I'm getting this issue within 5 sec when start the build.
Snack, code example, screenshot, or link to a repository
There are no code changes in local, I have created the new project after running that getting this issue in m1 Mac.