I have been developing an app for a long time and I've been archiving it perfectly and users been able to install the ipa file on their iOS devices, but lately when I publish my app it crashes on start up and it can not finish function "didFinishLaunchingWithOptions". when I distribute earlier versions which I have their archive file, they are ok, but when I archive the earlier version it crashes too on the devices. I have to add that I run the app perfectly fine on Xcode run and it has no error nor crash. I believe something is wrong with archiving my application and it's almost a week that I'm stuck with it!!
any help is appreciated :)
xcode 13, macos :11.6, ios:15.0.1