Which IOS ? It were problems with first IOS 13 releases.
Just tested in IOS 14.4 simulator. Compiled as Build Simulator Release App). If I click a button inside a program and then Home Screen button (at the top of simulator), a new icon appears immeadiatelly.