public List<XCBuildConfiguration> getBuildConfigurations(JSONObject jsonObject, String buildConfigurationList) throws JSONException {
        List<XCBuildConfiguration> buildConfigurations = new ArrayList<XCBuildConfiguration>();
        JSONObject buildConfigurationListIdJson = jsonObject.getJSONObject(buildConfigurationList);

        if (buildConfigurationListIdJson.has("isa")) {
            if (buildConfigurationListIdJson.getString("isa").equalsIgnoreCase("XCConfigurationList")) {

                JSONArray buildConfigurationIds = buildConfigurationListIdJson.getJSONArray("buildConfigurations");

                for (int i = 0; i < buildConfigurationIds.length(); i++) {
                    JSONObject buildConfigurationJson = jsonObject.getJSONObject(buildConfigurationIds.getString(i));
                    String name = buildConfigurationJson.getString("name");

                    XCBuildConfiguration buildConfiguration = new XCBuildConfiguration(name);

                    JSONObject buildSettings = buildConfigurationJson.getJSONObject("buildSettings");

                    if (buildSettings.has("INFOPLIST_FILE")) {
                        String infoPlistString = buildSettings.getString("INFOPLIST_FILE");
                        buildConfiguration.setInfoPlist(new File(infoPlistString));
                    }
                    buildConfigurations.add(buildConfiguration);
                }
            }

        }
        return buildConfigurations;
    }