When I runned the app on Xcode 15 sees my older project directory address but I don't working this directory. how can I change the working directory.
I searched for this errors but. I think the solutions for the before versions of Xcode 15. In Xcode 15 does not have current working directory options.

The scheme settings are stored in the file at YourApp.xcodeproj/xcshareddata/xcschemes/YourApp.xcscheme. This is an XML file, so you can directly edit the scheme information there.
Go to the
<LaunchAction>tag, which corresponds to the "Run" tab on Xcode's "Edit Scheme" dialog. It should have the attributesuseCustomWorkingDirectoryandcustomWorkingDirectory. Set the former to "YES" and the latter to a directory you like:Or, you can set
useCustomWorkingDirectoryto "NO" and removecustomWorkingDirectory. This sets the working directory to the product output directory, i.e. wherever Xcode generates the output executable.