English
English
简体中文
Register
Log In
English
English
简体中文
Register
Log In
Language
English
English
简体中文
Register
Log In

After the video is streamed, the app goes to the background, stays for a while, and then comes back to the foreground. This might cause the app to crash. How do I deal with this problem?

Last Updated on2023-12-07 06:07:47
  1. Check whether the error message Terminated due to signal 13 is returned.
  2. Add the following code block to main.m:
int main(int argc, char * argv[]) { @autoreleasepool { struct sigaction sa; sa.sa_handler = SIG_IGN; sigemptyset(&sa.sa_mask); sa.sa_flags = 0; if (sigaction(SIGPIPE, &sa, NULL) < 0) { perror("cannot ignore SIGPIPE"); return-1; } returnUIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); } }

Click for services and help

Help Center