File tree 2 files changed +4
-8
lines changed
iReSign.app/Contents/MacOS
2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -636,10 +636,8 @@ - (void)doCodeSigning {
636
636
637
637
if (appPath) {
638
638
if (hasFrameworks) {
639
- for (NSString *framework in frameworks) {
640
- [self signFile: framework];
641
- }
642
- [frameworks removeAllObjects ];
639
+ [self signFile: [frameworks lastObject ]];
640
+ [frameworks removeLastObject ];
643
641
} else {
644
642
[self signFile: appPath];
645
643
}
@@ -722,10 +720,8 @@ - (void)checkCodesigning:(NSTimer *)timer {
722
720
[timer invalidate ];
723
721
codesignTask = nil ;
724
722
if (frameworks.count > 0 ) {
725
- for (NSString *framework in frameworks) {
726
- [self signFile: framework];
727
- }
728
- [frameworks removeAllObjects ];
723
+ [self signFile: [frameworks lastObject ]];
724
+ [frameworks removeLastObject ];
729
725
} else if (hasFrameworks) {
730
726
hasFrameworks = NO ;
731
727
[self signFile: appPath];
You can’t perform that action at this time.
0 commit comments