-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathMobileProvisionInfo.h
57 lines (42 loc) · 1.02 KB
/
MobileProvisionInfo.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
//
// MobileProvisionInfo.h
//
// Created by eric on 2019/6/22.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
/**
iOS 安全防护之重签名防护,通过读取 embedded.mobileprovision ,取出里面相关信息比较
注意:
embedded.mobileprovision
1、在 App Store 下载的 App 中不会存在,
2、在模拟器 build 包也不会存在
*/
@interface MobileProvisionInfo : NSObject
+ (instancetype)shareInstance;
/**
通过传入真实 AppIdentifier 来检查包是否为重签名的包
*/
- (void)checkAndProtectWithAppIdentifier:(NSString *)appID;
/**
com.apple.developer.team-identifier
@return team identifier
*/
- (NSString *)getTeamIdentifier;
/**
application-identifier
@return app identifier
*/
- (NSString *)getAppIdentifier;
/**
com.apple.security.application-groups
@return group id
*/
- (NSString *)getGroupIdentifier;
/**
bunlde Identifier 与 AppIdentifier 区别是少个 team 头
@return bundle id
*/
- (NSString *)getBundleIdentifier;
@end
NS_ASSUME_NONNULL_END