Right now, the RMTimer class its causing a memory crash, since it is not stopping the timer in the deInit method. Before deallocating the RMTTimer you need to cancel the GCD timer, by not doing so, the timer will be triggered when the handler is deallocated resulting in the crash shown below.
We checked that you based you work on this Medium article A Background Repeating Timer in Swift, how ever the last step was not implemented in order to stop the timer and in consequence avoid this crash.


Right now, the RMTimer class its causing a memory crash, since it is not stopping the timer in the deInit method. Before deallocating the RMTTimer you need to cancel the GCD timer, by not doing so, the timer will be triggered when the handler is deallocated resulting in the crash shown below.
We checked that you based you work on this Medium article A Background Repeating Timer in Swift, how ever the last step was not implemented in order to stop the timer and in consequence avoid this crash.