File tree Expand file tree Collapse file tree
iReSign.app/Contents/MacOS Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -636,10 +636,8 @@ - (void)doCodeSigning {
636636
637637 if (appPath) {
638638 if (hasFrameworks) {
639- for (NSString *framework in frameworks) {
640- [self signFile: framework];
641- }
642- [frameworks removeAllObjects ];
639+ [self signFile: [frameworks lastObject ]];
640+ [frameworks removeLastObject ];
643641 } else {
644642 [self signFile: appPath];
645643 }
@@ -722,10 +720,8 @@ - (void)checkCodesigning:(NSTimer *)timer {
722720 [timer invalidate ];
723721 codesignTask = nil ;
724722 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 ];
729725 } else if (hasFrameworks) {
730726 hasFrameworks = NO ;
731727 [self signFile: appPath];
You can’t perform that action at this time.
0 commit comments