-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
uroboro
committed
Dec 20, 2016
1 parent
f68be3b
commit 397df56
Showing
4 changed files
with
39 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// | ||
// AppGroup.h | ||
// mach_portal | ||
// | ||
// Created by uroboro on 12/19/16. | ||
// Copyright © 2016 uroboro. All rights reserved. | ||
// | ||
|
||
#ifndef AppGroup_h | ||
#define AppGroup_h | ||
|
||
char * copyAppGroup(); | ||
|
||
#endif /* AppGroup_h */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// | ||
// AppGroup.m | ||
// mach_portal | ||
// | ||
// Created by uroboro on 12/19/16. | ||
// Copyright © 2016 uroboro. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
char * copyAppGroup() { | ||
NSString * path = [NSBundle.mainBundle pathForResource:@"mach_portal" ofType:@"entitlements"]; | ||
NSDictionary * dict = [NSDictionary dictionaryWithContentsOfFile:path]; | ||
NSString * appGroup = [dict[@"com.apple.security.application-groups"] firstObject]; | ||
return strdup(appGroup.UTF8String); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters