How to reproduce:
1. Create a new project and build it for the iOS platform
2. Open the Xcode file and go to Menu > Product > Build
3. Observe the result
Expected result: The app is built successfully
Actual result: App build failed, and the “Command PhaseScriptExecution failed with a nonzero exit code” error appears
Reproducible with: 2022.2.0a14, 2022.2.21f1, 2022.3.9f1, 2023.2.0a1, 2023.2.0b11, 2023.3.0a3
Not reproducible with: 2021.3.30f1, 2022.2.0a13, 2022.3.10f1, 2023.1.15f1, 2023.3.0a7
Fixed in: 2022.3.10f1, 2023.3.0a4
Reproduced on: macOS 13.5.2 (Intel)
Not reproducible on: No other environment tested
Note: reproduced with Xcode 15 beta, Xcode 15.1, not reproducible with Xcode 14.3.1