apache / cordova-node-xcode

Apache cordova
Apache License 2.0
190 stars 97 forks source link

Support editing `developmentRegion` #122

Closed ath0mas closed 2 years ago

ath0mas commented 2 years ago

While targeting regions inside a pbxproj this package allows to edit the knownRegions with 3 corresponding methods: addKnownRegion, removeKnownRegion , and hasKnownRegion.

Feature Description

Support editing developmentRegion too.

Resources

Example pbxproj template with both these elements: project.pbxproj

ath0mas commented 2 years ago

Closing.

No need for specific methods, both knownRegions and developmentRegion are accessible

const knownRegions = pbxProject.pbxProjectSection()[pbxProject.getFirstProject()['uuid']]['knownRegions'];
const developmentRegion = pbxProject.pbxProjectSection()[pbxProject.getFirstProject()['uuid']]['developmentRegion'];

like what's done in previously ref sources