The output directory was still correct for macOS with the new build system, but not for iOS. Fixes: #20662