Unable to switch environments in a mobile app build

0
1
Unable to switch environments in a mobile app build


We have a ipad iOS app that is currently being built from Azure DevOps. The app has "Choose Connection" screen(SS screen) that selects the URL that its going to hit or load and then authenticate by user. There are multi options in the URL’s defined in servers. xml(SS below). I need to add a new URL to hit login.salesforce.com with label Prod_non_sso.

The relevant fields from the files are shown below. If anything more is needed I can share.

This is prepareEnvironment.js

// Prepare Info.plist
execSync(`/usr/libexec/PlistBuddy -c 'Set :SFDCOAuthLoginHost ${servers[environment]}' ${plist}`);
// Prepare bootconfig.plist
execSync(`/usr/libexec/PlistBuddy -c 'Set :oauthRedirectURI https://${servers[environment]}/services/oauth2/success' ${bootConfigPlist}`);

This is Info.plist  
<key>SFDCOAuthLoginHost</key>
<string>test.salesforce.com</string>

This is the yaml relevant section

parameters:
  - name: environment
    displayName: 'Which environment to deploy to'
    type: string
    default: SANDBOX
    values:
      - SANDBOX
      - PROD
      - DEV
      - SHARED_QA 
      - GO_LIVE
      - 1LOCAL_QA_SP7
      - PREPROD  
      - PROD_NON_SSO    

PARAM_ENVIRONMENT_VALUE="${{ parameters.environment }}"

This is the error that comes up

Unable to switch environments in a mobile app build

enter image description here

enter image description here