cordova-node-xcode icon indicating copy to clipboard operation
cordova-node-xcode copied to clipboard

Allow comma in buildSettings

Open crapthings opened this issue 5 years ago • 1 comments

when i try to set "TARGETED_DEVICE_FAMILY", it failed. buildSettingsObj.TARGETED_DEVICE_FAMILY = '1,2'

While preparing Cordova project for platform iOS:
   SyntaxError: Expected ".", "/*", ";", or [0-9] but "," found.
   at peg$buildStructuredError (/Users/monsterstep/.meteor/packages/meteor-tool/.1.9.0.1eehdch.kfff++os.osx.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/cordova-lib/node_modules/xcode/lib/parser/pbxproj.js:412:12)
   at Object.peg$parse [as parse] (/Users/monsterstep/.meteor/packages/meteor-tool/.1.9.0.1eehdch.kfff++os.osx.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/cordova-lib/node_modules/xcode/lib/parser/pbxproj.js:1886:11)

the xcodeproj has value like this

image

image

https://github.com/apache/cordova-node-xcode/issues/57

crapthings avatar Feb 17 '20 06:02 crapthings

You can insert comma by double "", like this:

        buildSettingsObj.TARGETED_DEVICE_FAMILY = `"1,2"`;

Svarto avatar Aug 27 '21 13:08 Svarto