The reproduction project modifies IL2CPP build script, in turn Unity detects that the original script (in its original form) does not exists and adds it again.
The existing shell script phase should not be modified. A new script should be added instead: https://docs.unity3d.com/ScriptReference/iOS.Xcode.PBXProject.AddShellScriptBuildPhase.html