code: function getBuildProperty(project, property) {
      const firstTarget = project.getFirstTarget().firstTarget;
      const configurationList = project.pbxXCConfigurationList()[
          firstTarget.buildConfigurationList
      ];
      const defaultBuildConfiguration = configurationList.buildConfigurations.reduce(
          (acc, config) => {
              const buildSection = project.pbxXCBuildConfigurationSection()[
                  config.value
              ];
              return buildSection.name ===
                  configurationList.defaultConfigurationName
                  ? buildSection
                  : acc;
          },
          configurationList.buildConfigurations[0]
      );
  
      return defaultBuildConfiguration.buildSettings[property];
  }
docs: The getBuildProperty method of the 'xcode' project is a bit naive in that it doesn't take a specific target but iterates over all of them and doesn't have an exit condition if a property has been found. Which in the case of react-native projects usually is the tvOS target because it comes last.