I have a problem I put my iPhone 6 on iOS 12 beta 1 and that\'s so a method in my application to close when press on a popup button doesn\'t works on iOS 12 but works on iOS 11.
You can call exit method
exit(-1)
or you can use NSXPCConnection.suspend
UIControl().sendAction(#selector(NSXPCConnection.suspend), to: UIApplication.shared, for: nil)
Besides Apple isn't recommending to force terminate your app. It doesn't matter how you do that.
Check this post.