Remark only - I would...

    final File root = XCodeBuildLayout.getAppFolder(getXCodeCompileDirectory(), config, sdk);}}
    final File dsymRoot = new File(root, productName + ".app.dSYM");