I solved the problem using it:
“I found the installation installation assembly installation directory and noticed that a custom path was installed in my project. I just deleted it (setting it to its general value / Applications), and the next collection → Archive, which I did, worked like it and gave me the right one iOS app archive. "
source: Unable to create iOS application archive in xcode
source share