[Xcode] Use the same environment for command-line and IDE builds