Problem with Unity iOS Game export

i have export (build and run) my game to Xcode on my MacBook and when I try to “play” and load it on my iPhone it gives me one error
Command
PhaseScriptExecution failed with a nonzero exit code

Can someone help me?

And which Unity Version should I use? The newest 2023 Edition or should I stay at Unity 2022.3? In the Unity Hub it says recommended.
Thanks :slight_smile: