我尝试使用backendless作为我的后端,并且我阅读了我使用他们的示例代码的文档,当我运行我的应用程序时崩溃并出现以下错误
backendlessTest [9984:8668361] ***因未捕获而终止应用 类'Fault'的例外libc ++ abi.dylib:以未捕获的方式终止 类型错误的例外 (LLDB)
我的代码是
#import "ViewController.h"
#import "Backendless.h"
@interface ViewController ()
@end
@implementation ViewController
- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
BackendlessUser *user = [BackendlessUser new];
user.email = @"rawandahmad698@gmail.com";
user.password = @"mypassisHidden";
[backendless.userService registering:user];
}
- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
@end
答案 0 :(得分:1)
请参阅文档的错误处理页面: https://backendless.com/documentation/users/ios/users_error_handling.htm
特别添加一个try / catch块,并确保在抛出错误时处理一个场景。该错误将包含错误的详细信息。