app crashes

iOS app crashes on launch after updating and adding push notifications, but no crash logs are received; however, it works fine after restart. What could be the reason? launch failed, RBSProcessExitContext voluntary

launch failed, RBSProcessExitContext voluntary

I assume that you've discovered this message in the system log. Before going further, double check that it pertains to your app's process so that you don't go chasing down something that doesn't pertain to your app.

Now, assuming that you've confirmed that, voluntary is the key word in that message — the most straight-forward explanation for when this happens is that a code path run by your app chose to call exit, ending your app’s process gracefully. This isn’t a crash, so there is no crash report that would backtrace right to the code path that made this call.

As a starting point to locating any code paths in your app that call exit() directly, search your app’s entire source code for any calls to the system exit function, including any third-party libraries you use, and see what turns up. I sometimes like to use grep to find issues like these, should they turn up in unexpected corners, or potentially inside pre-compiled libraries that you can’t search as source. You can also search for _exit, as the complied name for exit source code functionality call.

There are less straight-forward scenarios where exit gets called, but before digging around those, let's look for the straight-forward scenarios with the above approach first. If you can't find it with the above, please share the exact grep command you used to search, and the results it produced.

— Ed Ford,  DTS Engineer

app crashes
 
 
Q