Generated xcode from windows 10 unity not working on xcode and Sonoma

Good morning,
We use Unity version 2023.2 for the development of our mobile games.
Everything works well on Android and we were able to publish the games in Google Play.
Now we want to push the game into the Apple Store and the generation of codes for xcode is done well except that the generated code displays several error messages preventing the generated code from being tested on macOs.
We use macOs Sonoma and xcode latest version.