My Swift application is set for certain iOS device, and runs fine in iOS simulator,
However, when changing hardware in iOS simulator, I get this error in Swift
Thread1: signal SIGTERM
I can set Swift for IOS device iPhone 6, IOS simulator runs iPhone 6, but can't change to other hardware (such as iPhone 4S). I can set Swift for IOS device iPhone 4S, and IOS simulator runs fine for iPhone 4S, but get the error when changing hardware (such as iPhone 6 which worked fine before).
Therefore, I am pretty sure the Swift application logic is correct.
How can I solve this?
This is expected behavior. There is nothing to "solve". Your app is correctly being sent SIGTERM because you requested to shutdown the running device and boot a new one (which will terminate all running processes in the existing device).