First of all, let me thank You for all Your awesome work on this project! Furthermore, I would have issued a pull request, if I were sure, I had the appropriate fix for this issue. But as it regards regex-matching, I think my (local) quickfix would not be up to Your standards.
Issue Type
[x] Bug Report
[ ] Feature Request
[ ] Support Question
Description
The cordova-ios Podfile generation fails, when multiple Pods are required for installation and the PROJECT_NAME includes apostrophes, due to the declarationsPostRE not matching against the escaped PROJECT_NAME.
Information
Command or Code
in the config.xml of Your project declare <name>Rock'n'Roll</name> (any name with one or more apostrophes)
run cordova platform add ios on the respective project, that contains one or more apostrophes in its name
First of all, let me thank You for all Your awesome work on this project! Furthermore, I would have issued a pull request, if I were sure, I had the appropriate fix for this issue. But as it regards regex-matching, I think my (local) quickfix would not be up to Your standards.
Issue Type
Description
The
cordova-ios
Podfile generation fails, when multiple Pods are required for installation and thePROJECT_NAME
includes apostrophes, due to thedeclarationsPostRE
not matching against the escapedPROJECT_NAME
.Information
Command or Code
config.xml
of Your project declare<name>Rock'n'Roll</name>
(any name with one or more apostrophes)cordova platform add ios
on the respective project, that contains one or more apostrophes in its namedeclarationsPostRE
regex does not match (the line gets escaped totarget 'Rock\'n\'Roll' do
)target 'Rock\'n\'Roll' do
declarations which triggerspod install --verbose
to fail withThe target is declared multiple times
Quickfix
Edit the
declarationsPostRE
:Environment, Platform, Device
I think this issue is not tied to any specific environment/device. For my stack, see below.
Version information
Operating System
IDE
node/npm
package.json (relevant entries)
(Both plugins require a pod to be installed.)
Checklist