Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Thread1: signal SIGTERM" (in Swift) when changing hardware in iOS simulator

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?

like image 275
ReneMusters Avatar asked Oct 27 '25 10:10

ReneMusters


2 Answers

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).

like image 135
Jeremy Huddleston Sequoia Avatar answered Oct 30 '25 04:10

Jeremy Huddleston Sequoia


Use the stop button to close the simulator. The error will be dismissed.

like image 40
ioonicu Avatar answered Oct 30 '25 03:10

ioonicu



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!