开发者

Program received SIGKILL error in the main.m

开发者 https://www.devze.com 2023-03-13 22:36 出处:网络
I am receiving an 开发者_开发知识库error in my main thread when i am trying to load a table with data being supplied from a different thread than main thread.

I am receiving an 开发者_开发知识库error in my main thread when i am trying to load a table with data being supplied from a different thread than main thread.

#import <UIKit/UIKit.h>

int main(int argc, char *argv[]) {
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
int retVal = UIApplicationMain(argc, argv, nil, nil);
[pool release];
return retVal;

please could anyone help me solving this.... }


Did you enable NSZombies?

If not here is how you do it?

  • Goto: Product-> Edit scheme
  • Choose Ran tab
  • Select "Arguments"
  • In the Environment Variables add
  • NSZombieEnabled and set its value to YES

Run your code. It should tell you where you have an error.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号