I never met this error before upgrade to Xcode15. error shows like: error: Build input file cannot be found: '{$PATH}/XXX.a'. Did you forget to declare this file as an output of a script phase or custom build rule which produces it? However, the file is exactly an intermediate file build before this target, but Im sure the file was there when linking, and i want to know HOW TO "declare this file as an output of a script phase", or how to deal this issue?
Xcode15 error Build input file cannot be found
Then: this error would show only in the first building, and building after it would always succeeded. If I intentionally delete this .a file, the next build will fail, but the file will be regenerated and come into effect during the following build, resulting in a successful build.