Github user sgrebnov commented on a diff in the pull request: https://github.com/apache/cordova-lib/pull/57#discussion_r14868912 --- Diff: cordova-lib/src/cordova/metadata/ios_parser.js --- @@ -217,6 +220,38 @@ module.exports.prototype = { self.update_overrides(); util.deleteSvnFolders(self.www_dir()); }); + }, + + update_build_settings:function(config) { + var targetDevice = parseTargetDevicePreference(config.getPreference('target-device', 'ios')); + var deploymentTarget = config.getPreference('deployment-target', 'ios'); + + // no build settings provided, we don't need to parse and update .pbxproj file + if (!targetDevice && !deploymentTarget) { + return Q(); + } + + var me = this; + var d = Q.defer(); + var proj = new xcode.project(this.pbxproj); + proj.parse(function(err,hash) { + if (err) { + d.reject(new Error('An error occured during parsing of project.pbxproj. Start weeping. Output: ' + err)); + return; + } + var buildConfiguration = proj.pbxXCBuildConfigurationSection(); + if (targetDevice) { + // TODO: replace propReplace with proj.updateBuildProperty after below is release + // https://github.com/alunny/node-xcode/pull/33 --- End diff -- Updated, thx @sriranggd
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---