Svarto commented on issue #57:
URL:
https://github.com/apache/cordova-node-xcode/issues/57#issuecomment-907184485
> @nshoes
>
> buildSettingsObj.IPHONEOS_DEPLOYMENT_TARGET = '9.0'
> buildSettingsObj.TARGETED_DEVICE_FAMILY = '1,2'
>
> but this repo can't support comma in value
>
> so you have to
>
> buildSettingsObj.TARGETED_DEVICE_FAMILY = '1'
> buildSettingsObj.TARGETED_DEVICE_FAMILY = '2'
>
> ```js
> var configurations = pbxProject.pbxXCBuildConfigurationSection()
> for (var key in configurations) {
> if (typeof configurations[key].buildSettings !== 'undefined') {
> var buildSettingsObj = configurations[key].buildSettings
> if (typeof buildSettingsObj.PRODUCT_NAME !== 'undefined') {
> var productName = buildSettingsObj.PRODUCT_NAME
> if (productName.indexOf('shareextension') >= 0) {
> buildSettingsObj.IPHONEOS_DEPLOYMENT_TARGET = '9.0'
> buildSettingsObj.TARGETED_DEVICE_FAMILY = '1,2'
> }
> }
> }
> }
> ```
This works:
```
buildSettingsObj.TARGETED_DEVICE_FAMILY = `"1,2"`;
```
--
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]