[ 
https://issues.apache.org/jira/browse/CB-11258?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15290935#comment-15290935
 ] 

Vladimir Kotikov commented on CB-11258:
---------------------------------------

[~eymorale], could you help me with reproducing this?

I can't reproduce this issue using the following hook in {{config.xml}}:
{noformat}
module.exports = function(context) {
    var fs = require('fs');
    var xcode = context.requireCordovaModule('xcode');
    var util = context.requireCordovaModule('cordova-lib/src/cordova/util');
    var ConfigParser = 
context.requireCordovaModule('cordova-lib/src/configparser/ConfigParser');
    var projectName = new 
ConfigParser(util.projectConfig(util.isCordova())).name();
    var projectPath = './platforms/ios/' + projectName + 
'.xcodeproj/project.pbxproj';
    var myProj = xcode.project(projectPath);
    myProj.parseSync();
    myProj.updateBuildProperty('ENABLE_BITCODE', 'NO');
    fs.writeFileSync(projectPath, myProj.writeSync());
    console.log('✔ BITCODE disable');
};
{noformat}

After adding some plugins (cordova-plugin-device 1.1.2, 
cordova-plugin-whitelist 1.2.2) and iOS platform (i tried both "master" and 
current 4.1.1) i can see {{ENABLE_BITCODE = NO}} in all build configurations in 
project.pbxproj, which means that hook's changes are not overwritten.

> iOS project.pbx file is overwritten after the after-plugin-install hook
> -----------------------------------------------------------------------
>
>                 Key: CB-11258
>                 URL: https://issues.apache.org/jira/browse/CB-11258
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>            Reporter: Edna Morales
>              Labels: cannot-reproduce
>
> Changes to the project.pbx file made in an after-plugin-install hook get 
> overwritten after the hook script runs. Specifically it happens when you add 
> the plugin first and then the iOS platform. If done with the platform first 
> and then the plugin, the changes remain.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to