iOS
Removing obsoleted frameworks
-
Remove the
Zdetection.frameworkfile in the Xcode project. -
Remove the value
$(SRCROOT)/../../Frameworks/ZDetectionset in the framework search path in Settings > FRAMEWORK_SEARCH_PATHS.
Removing obsoleted permissions
NSLocalNetworkUsageDescription permission may be removed from your application’s Info.plist, unless it is needed by another application component. It is requested from Zimperium previously.
Updating the source code
These configuration classes are no longer available, you can update the application source code to remove them:
GAHINAConfigGAHZMPConfig
Clean up obsoleted files/folders
By removing the Zimperium & InAuth modules, the application can do a clean up of the obsoleted files/folders created inside the application storage to save space.
Here is the list of obsoleted files under Documents folder that can be removed:
- ZDetection.sqlite
- ZDetection.sqlite-shm
- ZDetection.sqlite-wal
- trm.bin
- trm.dat
- trm_severity.dat
- zcore_full.zee9
- zcore_zphish.fdeep
- zcore_zphish.zee9
- zdb.bin
Here is a sample of implementation to remove those files/folder
- (void)clearObsoletedDataFromPreviousVersion
{
NSString *documentDirectory = [[[[NSFileManager defaultManager] URLsForDirectory:NSDocumentDirectory inDomains:NSUserDomainMask] objectAtIndex:0] path];
NSArray *obsoletedFiles = [NSArray arrayWithObjects:@"ZDetection.sqlite", @"ZDetection.sqlite-shm", @"ZDetection.sqlite-wal", @"trm.bin", @"trm.dat", @"trm_severity.dat", @"zcore_full.zee9", @"zcore_zphish.fdeep", @"zcore_zphish.zee9", @"zdb.bin", nil];
for (NSString *file in obsoletedFiles) {
NSString *resource = [documentDirectory stringByAppendingPathComponent:file];
[self removeDirectoryOrFileIfExists:resource];
}
}
- (void)removeDirectoryOrFileIfExists:(NSString *)path
{
if ([[NSFileManager defaultManager] fileExistsAtPath:path]) {
[[NSFileManager defaultManager] removeItemAtPath:path error:nil];
}
}