Avatar
func SignalHandler(sig: Int32) { let url = URL.init(string: "http://www.google.com")! UIApplication.shared.open(url, options: [:], completionHandler: nil) sleep(1) exit(sig) } @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { signal(SIGILL, SignalHandler) なんとなく成功したけどやっちゃ駄目な気がするw