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.

Interestingly, I managed to build an ios app today and push to Testflight… But when i went back to do it again I had the sharp.js issue again (failed build) !?
Any news on this one?

It seems the workaround may be to close the NSB/Appstudio application. Open the project up again and try the ios build from there. Seems like the first ‘go’ at it works!

(not 100% sure this is the workaround..but will test it out again)

Just to refine:-

If I

Save the project.
Close it.
Open it.
Build to Desktop
Build for native IOS

It works every time - no more Sharp.js issues.

Thanks for the news.

The VoltBuilder people are working on the permanent fix - I believe it’s in testing now.