[INFO] Creating app icon set
[ERROR] TypeError: Cannot read property 'replace' of undefined
at iOSBuilder.createAssetImageSets (/Users/xxxx/Library/Application Support/Titanium/mobilesdk/osx/10.0.0.v20210421092535/iphone/cli/commands/_build.js:5601:47)
at iOSBuilder.processAssets (/Users/xxxx/Library/Application Support/Titanium/mobilesdk/osx/10.0.0.v20210421092535/iphone/cli/commands/_build.js:5420:8)
at async /Users/xxxx/Library/Application Support/Titanium/mobilesdk/osx/10.0.0.v20210421092535/iphone/cli/commands/_build.js:5150:4
at async Promise.all (index 4)
at async iOSBuilder.run (/Users/xxxx/Library/Application Support/Titanium/mobilesdk/osx/10.0.0.v20210421092535/iphone/cli/commands/_build.js:2381:3)
Build failed. Process exited with code 1.
After deleting all assets with a tilde in the filename, the build succeeds.
Related to comments by Alberto Marcone and Tim Poulsen on issue TIMOB-27415
master: https://github.com/appcelerator/titanium_mobile/pull/12749
merged to master and 10_0_X branch for 10.0.0 GA target