|
@@ -407,8 +407,14 @@
|
|
|
|
|
|
NSMutableString *controlFile = [[NSMutableString alloc] initWithContentsOfFile:controlPath encoding:NSASCIIStringEncoding error:nil];
|
|
|
//@"appletvos-arm64"
|
|
|
+
|
|
|
+ //this is hacky but should be fine, only one of the two should exist so only one will get overwritten.
|
|
|
+
|
|
|
[controlFile replaceOccurrencesOfString:@"iphoneos-arm" withString:newArch options:NSLiteralSearch range:NSMakeRange(0, [controlFile length])];
|
|
|
|
|
|
+ [controlFile replaceOccurrencesOfString:@"darwin-arm64" withString:newArch options:NSLiteralSearch range:NSMakeRange(0, [controlFile length])];
|
|
|
+
|
|
|
+
|
|
|
[controlFile writeToFile:controlPath atomically:TRUE];
|
|
|
}
|
|
|
|