Browse Source

make it also attempt to repackage darwin-arm64 to appletvos-arm64

Kevin Bradley 4 years ago
parent
commit
40594b24e7

BIN
bootstrapTool.xcodeproj/project.xcworkspace/xcuserdata/kevinbradley.xcuserdatad/UserInterfaceState.xcuserstate


+ 6 - 0
bootstrapTool/Classes/InputPackage.m

@@ -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];
     }