应用程序正在崩溃第一代和第二代iPod Touch

Guy*_*ood 0 iphone xcode objective-c ipod-touch

据我所知,我发布的应用程序(隐藏伦敦 - 免费应用程序)在第二代和第三代iPod touch上崩溃.它在iPhone和iPad上没有问题.

崩溃日志如下:

Wed Apr 13 09:03:40 unknown kernel[0] <Debug>: launchd[908] Builtin profile: container (sandbox)

Wed Apr 13 09:03:40 unknown kernel[0] <Debug>: launchd[908] Container: /private/var/mobile/Applications/E509FC07-A742-4483-95B1-7393B3F129B9 [69] (sandbox)

Wed Apr 13 09:03:40 unknown sandboxd[911] <Notice>: HiddenLondon(908) deny file-write-data /private/var/mobile/Applications/E509FC07-A742-4483-95B1-7393B3F129B9/HiddenLondon.app/HiddenLondon.sqlite

Wed Apr 13 09:03:40 unknown HiddenLondon[908] <Warning>: Not purchased: com.Beutelkind.HiddenLondon.ExtraPlaces

Wed Apr 13 09:03:40 unknown HiddenLondon[908] <Warning>: Not purchased: com.Beutelkind.HiddenLondon.RemoveAds

Wed Apr 13 09:03:42 unknown securityd[910] <Error>: OCSPResponse: now + maxAge > latestNextUpdate, using latestNextUpdate

Wed Apr 13 09:03:42 unknown com.apple.SpringBoard[24] <Notice>: CoreAnimation: timed out fence 500

Wed Apr 13 09:04:00 unknown HiddenLondon[908] <Warning>: ADBannerView: WARNING A banner view (0x159470) has an ad but may be obscured. This message is only printed once per banner view.

Wed Apr 13 09:04:31 unknown configd[22] <Notice>: jetsam: kernel memory event (90), free: 323, active: 1250, inactive: 1494, purgeable: 0, wired: 7841

Wed Apr 13 09:04:31 unknown configd[22] <Notice>: jetsam: kernel termination snapshot being created

Wed Apr 13 09:04:31 unknown com.apple.launchd[1] <Notice>: (UIKitApplication:com.apple.AdSheetPhone[0xabc0]) Exited: Killed

Wed Apr 13 09:04:31 unknown com.apple.launchd[1] <Notice>: (UIKitApplication:com.Beutelkind.HiddenLondon[0x2fef]) Exited: Killed

Wed Apr 13 09:04:31 unknown SpringBoard[24] <Warning>: Received memory warning. Level=1

Wed Apr 13 09:04:31 unknown com.apple.launchd[1] <Notice>: (UIKitApplication:com.apple.mobilemail[0x736e]) Exited: Killed

Wed Apr 13 09:04:31 unknown SpringBoard[24] <Warning>: Received memory warning. Level=1

Wed Apr 13 09:04:32 unknown SpringBoard[24] <Warning>: Application 'AdSheet' exited abnormally with signal 9: Killed

Wed Apr 13 09:04:32 unknown SpringBoard[24] <Warning>: Application 'HiddenLondon' exited abnormally with signal 9: Killed

Wed Apr 13 09:04:32 unknown SpringBoard[24] <Warning>: Application 'Mail' exited abnormally with signal 9: Killed

Wed Apr 13 09:04:32 unknown SpringBoard[24] <Warning>: Memory level is not normal (56%). Delaying auto-relaunch of 'Mail' for 30 seconds.

Wed Apr 13 09:04:32 unknown SpringBoard[24] <Warning>: Received memory warning. Level=1

Wed Apr 13 09:04:33 unknown ReportCrash[917] <Error>: Saved crashreport to /Library/Logs/CrashReporter/LowMemory-2011-04-13-090433.plist using uid: 0 gid: 0, synthetic_euid: 0 egid: 0
Run Code Online (Sandbox Code Playgroud)

任何人都可以帮我开始解决为什么iPod Touch上可能会发生这种情况?

odr*_*drm 9

为什么你的应用程序崩溃的提示是Received memory warning. Level=1.你失去了记忆.这可能是您的应用程序用于数据结构的RAM量,但是当您耗尽图形内存时,我更常见到这种类型的错误 - 即用于合成视图的内存,缓存图像等.总量第1代和第2代的RAM触摸仅为128MB.第3代和第4代将其提升至256MB.

日志中的内存相关信息以jetsam: kernel memory event (90), free: 323, active: 1250, inactive: 1494, purgeable: 0, wired: 7841"低内存"警告消息开头.然后,您会看到一大堆应用程序被操作系统(Exited: Killed和exited abnormally with signal 9: Killed)终止.这是iOS在低内存条件下的记录行为 - 它会杀死应用程序,直到它有足够的可用内存.

  • 我不相信有一种替代设备上的测试(参见[在iPhone模拟器中设置内存](http://stackoverflow.com/questions/2545847)).但你可以用`Instruments`作为首发来追踪内存使用情况...... (3认同)