Build failed on Xcode 15

My project has worked for more than 10 years. But after upgraded to Xcode 15, it builds failed, I cant find any solution. Please help me. The error is as follows:

error: Build input file cannot be found: '/Users/jon/Develop/trunk/AirWork/-rpath'. Did you forget to declare this file as an output of a script phase or custom build rule which produces it?

how long is it since you last built or linked your project? Is it an app, a library or a framework? What version of Xcode and did it last succeed on?

It sounds like a tool has changed, and what used to look like a flag now looks like a file name to the build tools.

Build failed on Xcode 15
 
 
Q