VoltBuilder iOS: File not found error

Hi, I’m having problems building my first iOS debug app using VoltBuilder, same configuration works for Android without any issues.

Build fails with error: UserError: File not found: TypeError [ERR_INVALID_ARG_TYPE]: The "url" argument must be of type string. Received undefined. The log shows after
copy  www/toolbox/bs4/dist/open-iconic/fonts/open-iconic.woff platforms/ios/www/toolbox/bs4/dist/open-iconic/fonts/open-iconic.woff (new file)

The "url" argument must be of type string. Received undefined
TypeError [ERR_INVALID_ARG_TYPE]: The "url" argument must be of type string. Received undefined
    at new NodeError (node:internal/errors:371:5)
    at validateString (node:internal/validators:120:11)
    at Url.parse (node:url:169:3)
    at Object.urlParse [as parse] (node:url:156:13)
    at parseWhitelistUrlForATS (/platforms/ios/cordova/lib/prepare.js:1001:22)
    at /platforms/ios/cordova/lib/prepare.js:960:25
    at Array.reduce (<anonymous>)
    at processAccessAndAllowNavigationEntries (/platforms/ios/cordova/lib/prepare.js:951:10)
    at writeATSEntries (/platforms/ios/cordova/lib/prepare.js:1079:18)
    at updateProject (/platforms/ios/cordova/lib/prepare.js:208:17)

And later in the log after:
copy  platforms/ios/platform_www/plugins/cordova-plugin-statusbar/www/statusbar.js platforms/ios/www/plugins/cordova-plugin-statusbar/www/statusbar.js (updated file)

The "url" argument must be of type string. Received undefined
TypeError [ERR_INVALID_ARG_TYPE]: The "url" argument must be of type string. Received undefined
    at new NodeError (node:internal/errors:371:5)
    at validateString (node:internal/validators:120:11)
    at Url.parse (node:url:169:3)
    at Object.urlParse [as parse] (node:url:156:13)
    at parseWhitelistUrlForATS (/platforms/ios/cordova/lib/prepare.js:1001:22)
    at /platforms/ios/cordova/lib/prepare.js:960:25
    at Array.reduce (<anonymous>)
    at processAccessAndAllowNavigationEntries (/platforms/ios/cordova/lib/prepare.js:951:10)
    at writeATSEntries (/platforms/ios/cordova/lib/prepare.js:1079:18)
    at updateProject (/platforms/ios/cordova/lib/prepare.js:208:17)

File not found: TypeError [ERR_INVALID_ARG_TYPE]: The "url" argument must be of type string. Received undefined
This could be caused by a problem with a plugin.
reset_keychain

I use no additional plugins and a default VoltBuilder config.xml, just made the suggested changes to use Cordova11.

Could anyone give me a hint on where to check what’s causing the issue?

Thanks

I see from the log that your last run did not have this problem. What did you change?

Actually I wasn’t able to successfully build the iOS app yet, maybe you’ve seen the log from the Android build which I did in between to check if it works.
-13:11 local time - Android build
-13:44 - iOS build

Just did another run with the same error showing up

The problem is this line:

<access allow="https://xxxx.com" />

Checking the docs, the correct syntax is

<access origin="https://xxxx.com" />

Indeed, that fixed the problem, many thanks!
I’m still wondering how/why I messed that up… :thinking:
Could you give a hint on how I could have tracked the problem by myself down, are the any additional logs I could have looked at?

There was a message in the log as follows:

The "url" argument must be of type string. Received undefined
TypeError [ERR_INVALID_ARG_TYPE]: The "url" argument must be of type string. Received undefined

I then looked for URL strings in your config.xml.