I created an app for iOS Swift and was able to run it on the simulator as well as on the actual device.
However, when I tried to archive the app to be published on the App Store, the following error message was encountered:
Command failed due to signal: killed: 9
Why was this error encountered and how do I resolve this?