Skip to content

Instantly share code, notes, and snippets.

@baz
Created May 1, 2014 03:38
Show Gist options
  • Save baz/bbdc485f83bfecaf18ba to your computer and use it in GitHub Desktop.
Save baz/bbdc485f83bfecaf18ba to your computer and use it in GitHub Desktop.
Hockey inside of XPC
int main(int argc, const char *argv[]) {
NSXPCListener *serviceListener = [NSXPCListener serviceListener];
#ifndef DEBUG
[[BITHockeyManager sharedHockeyManager] configureWithIdentifier:@"<IDENTIFIER>" delegate:nil];
[[BITHockeyManager sharedHockeyManager] setDisableFeedbackManager:YES];
[[BITHockeyManager sharedHockeyManager].crashManager setAskUserDetails:NO];
[[BITHockeyManager sharedHockeyManager].crashManager setAutoSubmitCrashReport:YES];
[[BITHockeyManager sharedHockeyManager] startManager];
#endif
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment