JMCrashIfResign 是一种保护您的应用程序防止不良使用的方法。JMCrashIfResign 只在签名应用程序上激活(模拟器或模拟器上的单元测试没有问题)
#import "JMResignDetector.h"
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
// Override point for customization after application launch.
[JMResignDetector registerSecureTeamIdentifiers:@[@"35C6XY72U8", @"35C6X642UI", @"G8WDYDSFS7"]];
return YES;
}
JMCrashIfResign 通过 CocoaPods 提供。要安装它,只需将以下行添加到您的 Podfile
pod "JMCrashIfResign"
Jerome Morissard, [email protected]
JMCrashIfResign 在 MIT 许可下可用。有关更多信息,请参阅 LICENSE 文件。