I fixed it using the old linker and changing a little bit the Build Phases:
under "Other Linker Flags" inside "Project" add "-ld64" (with double quotes too!)
in "Runner" under "Targets" inside "Build Phases" move the "Embed Frameworks" and "Embed App Extensions" above "Thin Binary".
It's a workaround but I'm waiting for a real solution from Apple in order to use the new ld-prime linker inside XCode 15.
If someone else has an alternative solution please post it ;)