UncaughtExceptionHandler.m:156:47: 'autorelease' is unavailable: not available in automatic reference counting mode

ARC forbids explicit message send of 'autorelease'

 

[[[[UncaughtExceptionHandler alloc] init] autorelease]

     performSelectorOnMainThread:@selector(handleException:)

     withObject:

     [NSException

      exceptionWithName:UncaughtExceptionHandlerSignalExceptionName

      reason:

      [NSString stringWithFormat:

       NSLocalizedString(@"Signal %d was raised.", nil),

       signal]

      userInfo:

      [NSDictionary

       dictionaryWithObject:[NSNumber numberWithInt:signal]

       forKey:UncaughtExceptionHandlerSignalKey]]

     waitUntilDone:YES];

解决方法:

http://blog.csdn.net/xbl1986/article/details/7216668

相关文章:

  • 2022-12-23
  • 2021-11-23
  • 2021-09-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-04-12
  • 2022-12-23
  • 2022-12-23
  • 2021-07-02
  • 2021-07-24
相关资源
相似解决方案