Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Code-Hex committed Nov 3, 2024
1 parent 11f8101 commit 9f38783
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions virtualization_11.m
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,17 @@ - (void)virtualMachine:(VZVirtualMachine *)virtualMachine
[networkDevice debugDescription],
networkDevice.attachment,
error);

int i = 0;
for (VZNetworkDevice *nd in virtualMachine.networkDevices) {
if (nd == networkDevice) {
NSLog(@"Index network devices %d, %@", i, nd.attachment);
break;
}
i++;
}
NSLog(@"debug is finished");
[networkDevice setAttachment:[[VZNATNetworkDeviceAttachment alloc] init]];
}
@end

Expand Down

0 comments on commit 9f38783

Please sign in to comment.