recover from exception on iOS and macOS using signals and log the stacktrace

This commit is contained in:
2018-10-04 15:26:18 +02:00
parent f45eefe433
commit 55dbab498f
7 changed files with 53 additions and 64 deletions

18
PanoPainter/main.cpp Normal file
View File

@@ -0,0 +1,18 @@
//
// main.m
// PanoPainter
//
// Created by Omar Mohamed Ali Mudhir on 07/05/17.
// Copyright © 2017 Omar Mohamed Ali Mudhir. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "AppDelegate.h"
#include "objc_utils.h"
int main(int argc, char * argv[]) {
install_global_handlers();
@autoreleasepool {
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
}
}