我尝试使用 backendless 作为我的后端,并且我阅读了我使用他们的示例代码的文档,当我运行我的应用程序时,它崩溃并出现以下错误
backendlessTest[9984:8668361] *** Terminating app due to uncaught exception of class 'Fault' libc++abi.dylib: terminating with uncaught exception of type Fault (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
最佳答案
查看文档的错误处理页面: https://backendless.com/documentation/users/ios/users_error_handling.htm
专门添加一个 try/catch block ,并确保在抛出错误时处理场景。该错误将包含有关错误原因的详细信息。
关于ios - 首次使用后无后端应用程序崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43126886/