leogoesger commented on issue #664: Build Fail after adding Notification 
Service Extension in Xcode
URL: https://github.com/apache/cordova-ios/issues/664#issuecomment-573209964
 
 
   In `ios/cordova/lib/projectFile.js`
   
   ```
     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)
       );
    });
   ```
   
   Detail here for how we solved it. 
   https://github.com/apache/cordova-ios/issues/764

----------------------------------------------------------------
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]


With regards,
Apache Git Services

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

Reply via email to