homerlex opened a new issue #1139: URL: https://github.com/apache/cordova-ios/issues/1139
# Bug Report ## Problem We have a Cordova app with both Android and iOS platforms. One of the plugins we use has a BridgingHeader on the iOS side. Adding/Removing this plugin on OSX (and probably Linux) works fine. However, trying to add or remove this plugin from a Windows command line yields the following error: `BridgingHeader.h is not found.` **NOTE**: Plugins that do not have a BridgingHeader can be added and removed using the Windows command line without a problem. ### What is expected to happen? Expecting to be able to add/remove the plugin from Windows command line. ### What does actually happen? Not able to add/remove the plugin from Windows command line. ## Information I've tracked the problem down to the lines of code that try to extract the project name: https://github.com/apache/cordova-ios/blob/a3a3936a549981054dabff8098dfa393094eb834/bin/templates/scripts/cordova/Api.js#L261 https://github.com/apache/cordova-ios/blob/a3a3936a549981054dabff8098dfa393094eb834/bin/templates/scripts/cordova/Api.js#L309 The forward slash in the following code will not work for extracting the project name when in a Windows console: `const project_name = this.locations.xcodeCordovaProj.split('/').pop();` ### Command or Code Run the following commands to add or remove a plugin that has a BridgingHeader: `cordova plugin add cordova-plugin-<of-your-choice>` `cordova plugin rm cordova-plugin-<of-your-choice>` ### Environment, Platform, Device <!-- In what environment, on what platform or on which device are you experiencing the issue? --> Windows 10 Platforms: android 9.0.0, ios 6.2.0 Cordova: 10.0.0 ### Version information Windows 10 Platforms: android 9.0.0, ios 6.2.0 Cordova: 10.0.0 ## Checklist - [x] I searched for existing GitHub issues - [x] I updated all Cordova tooling to most recent version - [x] I included all the necessary information above -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
