Sharp.js issue when building for ios

Hi, I can’t seem to build for IOS at the moment.

The voltbuilder log is returning : -

2026-08-05 13:29:23,481 - Output: /usr/local/lib/node_modules/cordova-res/node_modules/sharp/lib/sharp.js:30
throw new Error(help.join(‘\n’));
^

Error:
Something went wrong installing the “sharp” module

Cannot find module ‘../build/Release/sharp-darwin-x64.node’
Require stack:

  • /usr/local/lib/node_modules/cordova-res/node_modules/sharp/lib/sharp.js
  • /usr/local/lib/node_modules/cordova-res/node_modules/sharp/lib/constructor.js
  • /usr/local/lib/node_modules/cordova-res/node_modules/sharp/lib/index.js
  • /usr/local/lib/node_modules/cordova-res/dist/image.js
  • /usr/local/lib/node_modules/cordova-res/dist/cli.js
  • /usr/local/lib/node_modules/cordova-res/dist/index.js
  • /usr/local/lib/node_modules/cordova-res/bin/cordova-res

We’re aware of the issue and working on a fix in VoltBuilder.

There’s a bug in the internal npm build process which installs the wrong file name. Not caused by us, but we’re planning a workaround.