The solution was to remove the Development Entitlements so that the game is built without the Sandboxing flag which limit its permissions, such as reading and writing the steam_appid.txt among other things.
Project Settings > Xcode > Mac: Development Entitlements > Remove the value