|
@@ -270,10 +270,11 @@
|
|
|
}
|
|
|
|
|
|
- (void)flattenIfNecessary:(NSString *)file {
|
|
|
- if ([self fileIsSymbolicLink:file]){
|
|
|
- DLog(@"skipping symbolic link: %@", file);
|
|
|
+ if ([self fileIsSymbolicLink:file] || ![self shouldCodesignFile:file]){
|
|
|
+ //DLog(@"skipping file: %@", file);
|
|
|
return;
|
|
|
}
|
|
|
+ DLog(@"processing file: %@", file);
|
|
|
NSString *fat = [HelperClass singleLineReturnForProcess:@"/usr/bin/lipo -info %@",file];
|
|
|
if ([fat containsString:@"Architectures"]){
|
|
|
NSString *newFile = [file stringByAppendingPathExtension:@"thin"];
|
|
@@ -282,13 +283,14 @@
|
|
|
[FM removeItemAtPath:file error:nil];
|
|
|
[FM moveItemAtPath:newFile toPath:file error:nil];
|
|
|
}
|
|
|
+ /*
|
|
|
int uni = [Universalize universalize:file];
|
|
|
if (uni == 1){
|
|
|
DLog(@"Universalized %@ successfully!", file);
|
|
|
[self codesignRetainingSignature:file];
|
|
|
} else {
|
|
|
DLog(@"Universalize %@ failed or non zero!: %d", file, uni);
|
|
|
- }
|
|
|
+ } */
|
|
|
// @"sudo lipo -thin arm64 $input.og -output $input";
|
|
|
}
|
|
|
}
|
|
@@ -322,7 +324,7 @@
|
|
|
}
|
|
|
|
|
|
- (void)flattenInPath:(NSString *)thePath {
|
|
|
-
|
|
|
+ if (self.skipSignatureChecks) { return; }
|
|
|
[self.files enumerateObjectsUsingBlock:^(InputPackageFile * _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop) {
|
|
|
NSString *file = [thePath stringByAppendingPathComponent:obj.path];
|
|
|
//DLog(@"check sig file: %@", obj.path);
|