增加以下内容:
#define LC_VERSION_MIN_TVOS 0x2F // add by obaby #define LC_VERSION_MIN_WATCHOS 0x30
MachOView is a visual Mach-O file browser. It provides a complete solution for exploring and in-place editing Intel and ARM binaries.
NSWindow drag regions should only be invalidated on the Main Thread!'
//----------------------------------------------------------------------------
- (void)handleThreadStateChanged:(NSNotification *)notification
{
  if ([notification object] == dataController)
  {
    NSString * threadState = [[notification userInfo] objectForKey:MVStatusUserInfoKey];
    if ([threadState isEqualToString:MVStatusTaskStarted] == YES)
    {
      if (OSAtomicIncrement32(&threadCount) == 1)
      {
        [progressIndicator setUsesThreadedAnimation:YES];
        [progressIndicator startAnimation:nil];
//        [stopButton setHidden:NO];
          dispatch_async(dispatch_get_main_queue(), ^{
              [stopButton setHidden:NO];
          });
       }
    }
    else if ([threadState isEqualToString:MVStatusTaskTerminated] == YES)
    {
      if (OSAtomicDecrement32(&threadCount) == 0)
      {
        [progressIndicator stopAnimation:nil]; 
        [statusText setStringValue:@""];
          dispatch_async(dispatch_get_main_queue(), ^{
              [stopButton setHidden:YES];
          });
//        [stopButton setHidden:YES];
      }
    }
  }
}
在Mac OS下要在命令行中调用另外一个二进制程序可以使用NSTask但是在iOS上如果要使用这个东西就会发现一个问题:找不到NSTask定义,其实问题的关键是找不到相关的头文件。解决办法也很简单,直接把下面的NSTask头文件放到项目的解决方案下再调用就行了。