Tweak定时执行任务,不确定什么时候就会闪退。

以下是错误日志,还请帮忙看看,谢谢
Oct 14 15:40:42 jiangliangde-iPhone UserEventAgent[21]: jetsam: kernel termination snapshot being created
Oct 14 15:40:42 jiangliangde-iPhone com.apple.launchd[1] (com.apple.tccd[17594]): (com.apple.tccd) Exited: Killed: 9
Oct 14 15:40:42 jiangliangde-iPhone com.apple.launchd[1] (UIKitApplication:com.appstore.XXPro[0xab8f][17589]): (UIKitApplication:com.appstore.XXPro[0xab8f]) Exited: Killed: 9
Oct 14 15:40:42 jiangliangde-iPhone com.apple.launchd[1] (UIKitApplication:com.appstore.XXPro[0xab8f]): (UIKitApplication:com.appstore.XXPro[0xab8f]) assertion failed: 11D169: launchd + 74759 [666E5F5B-36E7-3134-852E-A4BFEF07CD31]: 0x16
Oct 14 15:40:42 jiangliangde-iPhone backboardd[12373]: Application ‘UIKitApplication:com.appstore.XXPro[0xab8f]’ exited abnormally with signal 9: Killed: 9
Oct 14 15:40:44 jiangliangde-iPhone ReportCrash[17717]: MS:Notice: Injecting: (null) [ReportCrash] (847.24)
Oct 14 15:40:44 jiangliangde-iPhone sandboxd[17721]: MS:Notice: Injecting: (null) [sandboxd] (847.24)
Oct 14 15:40:44 jiangliangde-iPhone ReportCrash[17717]: MS:Notice: Loading: /Library/MobileSubstrate/DynamicLibraries/RocketBootstrap.dylib
Oct 14 15:40:45 jiangliangde-iPhone DuetLST[17719]: MS:Notice: Injecting: (null) [DuetLST] (847.24)
Oct 14 15:40:45 jiangliangde-iPhone ReportCrash[17717]: Saved crashreport to /Library/Logs/CrashReporter/LowMemory-2016-10-14-154044.ips using uid: 0 gid: 0, synthetic_euid: 0 egid: 0
Oct 14 15:40:48 jiangliangde-iPhone MobileGestaltHelper[17723]: MS:Notice: Injecting: (null) [MobileGestaltHelper] (847.24)
Oct 14 15:40:48 jiangliangde-iPhone MobileGestaltHelper[17723]: MS:Notice: Loading: /Library/MobileSubstrate/DynamicLibraries/Activator.dylib
Oct 14 15:40:49 jiangliangde-iPhone MobileGestaltHelper[17723]: MS:Notice: Loading: /Library/MobileSubstrate/DynamicLibraries/libSGStatusBar.dylib
Oct 14 15:40:49 jiangliangde-iPhone MobileGestaltHelper[17723]: CoreFoundation = 847.240000
Oct 14 15:41:08 jiangliangde-iPhone ubd[17725]: MS:Notice: Injecting: com.apple.ubd [ubd] (847.24)
Oct 14 15:41:08 jiangliangde-iPhone accountsd[17727]: MS:Notice: Injecting: com.apple.Accounts [accountsd] (847.24)
Oct 14 15:41:09 jiangliangde-iPhone accountsd[17727]: assertion failed: 11D169: liblaunch.dylib + 19359 [8EAC07C7-64FD-378C-AAB4-A88566C502DA]: 0x25
Oct 14 15:41:09 jiangliangde-iPhone Unknown[17727]:
Oct 14 15:41:10 jiangliangde-iPhone awdd[17729]: MS:Notice: Injecting: (null) [awdd] (847.24)
Oct 14 15:41:11 jiangliangde-iPhone awdd[17729]: CoreLocation: CLClient is deprecated. Will be obsolete soon.
Oct 14 15:41:20 jiangliangde-iPhone securityd[17731]: MS:Notice: Injecting: (null) [securityd] (847.24)
Oct 14 15:42:44 jiangliangde-iPhone networkd_privileged[17735]: MS:Notice: Injecting: (null) [networkd_privileged] (847.24)

内存管理问题?

不太懂哦,用了两个NSTimer,多个NSURL,NSURLRequest,NSData,来回向服务器请求数据,还请指点下,如何很好的管理内存,用release吗

- (void)viewDidLoad { %orig; [NSThread detachNewThreadSelector:@selector(threadMethod1) toTarget:self withObject:nil]; [NSThread detachNewThreadSelector:@selector(threadMethod2) toTarget:self withObject:nil]; } %new -(void)threadMethod2 { NSDate *fireDate = [NSDate dateWithTimeIntervalSinceNow:1.0]; timer2= [[NSTimer alloc] initWithFireDate:fireDate interval:4 target:self selector:@selector(GetAvPlayer) userInfo:nil repeats:YES]; [[NSRunLoop currentRunLoop] addTimer:timer2 forMode:NSDefaultRunLoopMode]; [[NSRunLoop currentRunLoop] run]; } %new -(void)threadMethod1 { NSDate *fireDate = [NSDate dateWithTimeIntervalSinceNow:1.0]; timer1= [[NSTimer alloc] initWithFireDate:fireDate interval:5 target:self selector:@selector(getGrowup) userInfo:nil repeats:YES]; [[NSRunLoop currentRunLoop] addTimer:timer1 forMode:NSDefaultRunLoopMode]; [[NSRunLoop currentRunLoop] run]; }

求打神指教啊!

为什么不看看, 你是不是没开ARC

tweak怎么开arc

http://stackoverflow.com/questions/15628108/enable-arc-for-theos-build-system

Build Phases → Compile Sources 然后给需要arc的文件添加-fobjc-arc