leogoesger edited a comment on issue #764:
URL: https://github.com/apache/cordova-ios/issues/764#issuecomment-669317730


   If anyone need a quick fix, this is what worked for us. I submitted a PR a 
long time ago, I think everyone got busy.
   
   ios/cordova/lib/projectFile.js, manually modify those. replace, around 43, 
after prettier
   
   ```
     var xcBuildConfiguration = xcodeproj.pbxXCBuildConfigurationSection();
     var plist_file_entry = _.find(xcBuildConfiguration, function(entry) {
       return entry.buildSettings && entry.buildSettings.INFOPLIST_FILE;
     });
   ```
   
   with
   
   ```
   var projectName = fs
       .readdirSync(project_dir)
       .find(d => d.includes(".xcworkspace"))
       .replace(".xcworkspace", "");
   
   var xcBuildConfiguration = xcodeproj.pbxXCBuildConfigurationSection();
   var plist_file_entry = _.find(xcBuildConfiguration, function(entry) {
     return (
       entry.buildSettings &&
       entry.buildSettings.INFOPLIST_FILE &&
       entry.buildSettings.INFOPLIST_FILE.includes(projectName)
     );
   });
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



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

Reply via email to