Skip to content

Commit

Permalink
fix new mac no Provisioning Profiles dir
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakey authored and Jakey committed Nov 22, 2018
1 parent e21a3ef commit 851d294
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ProfilesManager/Controller/ProfilesManagerViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ - (void)viewDidLoad {
[super viewDidLoad];
// Do view setup here.
_profileDir = [NSString stringWithFormat:@"%@/Library/MobileDevice/Provisioning Profiles/", [[NSFileManager defaultManager] realHomeDirectory]];

if(![[NSFileManager defaultManager] fileExistsAtPath:_profileDir]){
[[NSFileManager defaultManager] createDirectoryAtPath:_profileDir withIntermediateDirectories:YES attributes:nil error:nil];
}
//当拖拽窗口大小,NSOutlineView frame自动更改时,Column宽等比增减
[self.treeView setColumnAutoresizingStyle:NSTableViewUniformColumnAutoresizingStyle];
//最后一行自动宽等比增减
Expand Down

0 comments on commit 851d294

Please sign in to comment.