Post not yet marked as solved
Post marked as unsolved with 0 replies, 816 views
It appears that macOS applications are ignoring the current working directory set by Xcode. Here is a simple Xcode project that demonstrates the problem:
https://www.ultraengine.com/downloads/xcodeworkingdir.zip
The application starting directory retrieved by NSFileManager:currentDirectoryPath is always "/Users/josh/Library/Containers/whatever.test/Data" even though in the product schema I have a custom working directory set to $(PROJECT_DIR).
Tested on macOS Catalina with Xcode 12.2 and 11.3.1.