16 Replies Latest reply on May 4, 2017 10:35 AM by edgardm65525479

    Phonegap ios build fails due to missing parameter


      Hello everyone,


      Since a couple of days my ios phonegap build suddenly fails with the following error:

      Error - One of your plugins requires a parameter: URL_SCHEME - You can fix this here


      This is a customized Moodle mobile app, which uses the cordova custom url scheme plugin.  However, the parameter URL_SCHEME is correctly defined in the config.xml as follows:


      <gap:plugin name="cordova-plugin-customurlscheme" source="npm">

           <param name="URL_SCHEME" value="moodlemobile" />



      The log states the following:


      "plugman install --platform ios --project /project --plugin cordova-plugin-customurlscheme": Fetching plugin "cordova-plugin-customurlscheme" via npm

      Installing "cordova-plugin-customurlscheme" for ios

      Failed to install 'cordova-plugin-customurlscheme':Error: Variable(s) missing: URL_SCHEME

          at /usr/local/lib/node_modules/plugman/node_modules/cordova-lib/src/plugman/install.js:362:2 3

          at _fulfilled (/usr/local/lib/node_modules/plugman/node_modules/q/q.js:787:54)

          at self.promiseDispatch.done (/usr/local/lib/node_modules/plugman/node_modules/q/q.js:816:30)

          at Promise.promise.promiseDispatch (/usr/local/lib/node_modules/plugman/node_modules/q/q.js:749:13)

          at /usr/local/lib/node_modules/plugman/node_modules/q/q.js:557:44

          at flush (/usr/local/lib/node_modules/plugman/node_modules/q/q.js:108:17)

          at _combinedTickCallback (internal/process/next_tick.js:67:7)

          at process._tickCallback (internal/process/next_tick.js:98:9)

      Variable(s) missing: URL_SCHEME


      The build was working fine with the same codebase last week, something must have changed in the last couple of days.  The Android build still works without any issues.  A few other users seem to have the same issue:

      Moodle in English: Phonegap build fails due to missing parameter: URL_SCHEME


      Any ideas?  Many thanks!