Skip to content

Instantly share code, notes, and snippets.

@heumn
Last active October 22, 2015 09:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save heumn/2c59a0a4ce1cbf3a97ef to your computer and use it in GitHub Desktop.
Save heumn/2c59a0a4ce1cbf3a97ef to your computer and use it in GitHub Desktop.
#warning DO NOT LEAVE IN PRODUCTION
@interface PrivateApi_LSApplicationWorkspace
- (bool)openApplicationWithBundleID:(id)arg1;
@end
@implementation UIApplication (CHROpenTestFlight)
+ (void)chr_openTestFlightAppIfPossible {
PrivateApi_LSApplicationWorkspace *workspace = [NSClassFromString(@"LSApplicationWorkspace") new];
[workspace openApplicationWithBundleID:@"com.apple.TestFlight"];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment