Comment on Xcode 15: "Cycle inside ...; building could produce unreliable results" due to DSTROOT=/ its worked. I moved the Run script at last in the build phase and excluded the arm64 arch for the simulator works fine. Developer Tools & Services Xcode Jun ’23