You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2021/08/27 13:00:27 UTC

[GitHub] [cordova-node-xcode] Svarto commented on issue #57: How to change Deployment Info?

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: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org