Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reading .mobileprovision with ManagedConfiguration.framework #8

Open
julioverne opened this issue Jun 25, 2017 · 0 comments
Open

Reading .mobileprovision with ManagedConfiguration.framework #8

julioverne opened this issue Jun 25, 2017 · 0 comments

Comments

@julioverne
Copy link

by linking Private Framework ManagedConfiguration.framework can be decode .mobileprovision to NSDictionary without crash. i have used this method in Ext3nder and fix all crash.

#import "CertUtils.h"

@interface MCProfile : NSObject
+ (NSDictionary*)profileDictionaryFromProfileData:(NSData*)arg1 outError:(NSError **)arg2;
@end

@implementation CertUtils
+ (NSDictionary *)provisioningProfileAtPath:(NSString *)path {
	@try {
		if(NSData *fileData = [NSData dataWithContentsOfFile:path]) {
			if(NSDictionary *plist = [MCProfile profileDictionaryFromProfileData:fileData outError:nil]) {
				return plist;
			}
		}
	}@catch (NSException * e) {
		return @{};
	}
	return @{};
}
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant