从我读过的内容来看,这个话题在过去的几年中已经出现了好几次,而且答案非常含糊,而且我从一年多来发现的内容中都没有提到它。我希望有进步。
无论如何,我目前安装了IOS 5.0.1的Iphone 4,并且遇到了从App Store安装的大多数应用程序在启动画面上崩溃的问题。有很多人说从App Store安装一个随机应用程序,重新安装应用程序,或完全恢复你的手机将解决这个问题,但它似乎不再具有相同的效果(因为大多数这些建议是针对IOS 4和3,而不是5)。
所以,我所做的只是试图找到问题的根源。我将使用流行的和众所周知的应用程序UrbanSpoon作为崩溃的例子。以下是尝试运行UrbanSpoon后的syslog和崩溃报告。根据我从他们可以理解的内容,它与IOS沙盒应用程序的方式有关,但我无法弄清楚哪个部分明确说明可能导致崩溃的原因。
非常感谢任何有关这方面的帮助,希望这些答案能让每个有这个问题的人受益!
日志:
(从UrbanSpoon首次执行时的日志文件中剪切到最后一次提交应用程序)
编辑: Syslog太大了,不能在这里发布,这里是链接。 http://dl.dropbox.com/u/9235267/MyiPhoneSysLogForUrbanSpoon.txt
UrbanSpoon的崩溃报告:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>AutoSubmitted</key>
<true/>
<key>SysInfoCrashReporterKey</key>
<string>38f6d9c3d504f902f8dbae968517559766e3092d</string>
<key>bug_type</key>
<string>109</string>
<key>description</key>
<string>Incident Identifier: 568DB2CE-F9A2-47A7-A427-B5C4DF6A09D0
CrashReporter Key: 38f6d9c3d504f902f8dbae968517559766e3092d
Hardware Model: iPhone3,1
Process: urbanspin [282]
Path: /var/mobile/Applications/42579EAA-3CD0-4B2B-BFF5-5EB1C9297207/urbanspin.app/urbanspin
Identifier: urbanspin
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2012-01-04 13:22:22.479 -0500
OS Version: iPhone OS 5.0.1 (9A405)
Report Version: 104
Exception Type: 00000020
Exception Codes: 0x8badf00d
Highlighted Thread: 0
Application Specific Information:
com.urbanspoon.urbanspin failed to launch in time
Elapsed total CPU time (seconds): 20.580 (user 20.580, system 0.000), 100% CPU
Elapsed application CPU time (seconds): 0.511, 2% CPU
Thread 0:
0 ??? 0x34a7f110 0 + 883421456
1 Foundation 0x32356c92 0x32350000 + 27794
2 AnyRingLib.dylib 0x00379a3e 0x377000 + 10814
3 dyld 0x2febdf80 0x2feb1000 + 53120
4 dyld 0x2febdbcc 0x2feb1000 + 52172
5 dyld 0x2febb7d0 0x2feb1000 + 42960
6 dyld 0x2febc790 0x2feb1000 + 46992
7 dyld 0x2feb35c0 0x2feb1000 + 9664
8 dyld 0x2feb9106 0x2feb1000 + 33030
9 ??? 0x3367b5a4 0 + 862434724
10 SubstrateLoader.dylib 0x000d46ae 0xd3000 + 5806
11 SubstrateLoader.dylib 0x000d4828 0xd3000 + 6184
12 dyld 0x2febdece 0x2feb1000 + 52942
13 dyld 0x2febdbd4 0x2feb1000 + 52180
14 dyld 0x2febb7d0 0x2feb1000 + 42960
15 dyld 0x2febc790 0x2feb1000 + 46992
16 dyld 0x2feb35c0 0x2feb1000 + 9664
17 dyld 0x2feb9106 0x2feb1000 + 33030
18 ??? 0x3367b5a4 0 + 862434724
19 MobileSubstrate.dylib 0x0009aea0 0x9a000 + 3744
20 dyld 0x2febdece 0x2feb1000 + 52942
21 dyld 0x2febdbd4 0x2feb1000 + 52180
22 dyld 0x2febb7d0 0x2feb1000 + 42960
23 dyld 0x2febc790 0x2feb1000 + 46992
24 dyld 0x2feb39f0 0x2feb1000 + 10736
25 dyld 0x2feb7b80 0x2feb1000 + 27520
26 dyld 0x2feb22ca 0x2feb1000 + 4810
27 dyld 0x2feb205c 0x2feb1000 + 4188
Thread 1:
0 ??? 0x34a7e3b4 0 + 883418036
1 ??? 0x34beab98 0 + 884911000
2 ??? 0xfffffffc 0 + -4
Thread 2:
0 ??? 0x34a8ecd4 0 + 883485908
1 ??? 0x3626d0a0 0 + 908513440
Thread 3:
0 ??? 0x34a8ecd4 0 + 883485908
1 ??? 0x3626d0a0 0 + 908513440
Unknown thread crashed with unknown flavor: 5, state_count: 1
Binary Images:
0x1000 - 0x74fff +urbanspin armv7 <0b3e8cdf11113d1abf4c0d83ef1a3ebe> /var/mobile/Applications/42579EAA-3CD0-4B2B-BFF5-5EB1C9297207/urbanspin.app/urbanspin
0x9a000 - 0x9afff +MobileSubstrate.dylib armv6 <cf2cce379dcd3a4c970e3196b908b0b6> /Library/MobileSubstrate/MobileSubstrate.dylib
0xd3000 - 0xd4fff +SubstrateLoader.dylib armv6 <30381ec9e24c3c289f447bf428bda2c1> /Library/Frameworks/CydiaSubstrate.framework/Libraries/SubstrateLoader.dylib
0xf7000 - 0xfafff libsubstrate.dylib armv6 <d375337d03a7324c9cfb608b7231eeea> /usr/lib/libsubstrate.dylib
0x300000 - 0x311fff +ActionMenu.dylib armv6 <62581e9bc0d93ef2ab8175cd5e337e62> /Library/MobileSubstrate/DynamicLibraries/ActionMenu.dylib
0x318000 - 0x321fff +Activator.dylib armv6 <53595f5e871d3d7eac4f8e945b039de3> /Library/MobileSubstrate/DynamicLibraries/Activator.dylib
0x329000 - 0x365fff +AdBlocker.dylib armv6 <07089bfdb5563a33bee5fc772477dd33> /Library/MobileSubstrate/DynamicLibraries/AdBlocker.dylib
0x377000 - 0x396fff +AnyRingLib.dylib armv6 <98857b11e0d73e13dfb59d83ed186a0e> /Library/MobileSubstrate/DynamicLibraries/AnyRingLib.dylib
0x2feb1000 - 0x2fed2fff dyld armv7 <be7c0b491a943054ad12eb5060f1da06> /usr/lib/dyld
0x31933000 - 0x31a78fff CoreGraphics armv7 <641fb6e558f239588a8bd05dbefff99a> /System/Library/Frameworks/CoreGraphics.framework/CoreGraphics
0x32350000 - 0x324cefff Foundation armv7 <ce466f428d953caaac6641d186665809> /System/Library/Frameworks/Foundation.framework/Foundation
0x362fd000 - 0x363edfff QuartzCore armv7 <ff595b1a042933249466e92433e1af6f> /System/Library/Frameworks/QuartzCore.framework/QuartzCore
0x36d54000 - 0x371edfff UIKit armv7 <97b527cd6fba35c6bb39263e0f362223> /System/Library/Frameworks/UIKit.framework/UIKit
0x378d1000 - 0x3791cfff CoreLocation armv7 <b640873565a03e45a7d4c38d1b5abade> /System/Library/Frameworks/CoreLocation.framework/CoreLocation
</string>
<key>displayName</key>
<string>urbanspin</string>
<key>name</key>
<string>urbanspin</string>
<key>os_version</key>
<string>iPhone OS 5.0.1 (9A405)</string>
<key>system_ID</key>
<string></string>
<key>version</key>
<string>??? (???)</string>
</dict>
</plist>
答案 0 :(得分:1)
这句话:“应用程序未能按时启动”似乎是整个事情的根源。这意味着应用程序在-applicationDidFinishLaunchingWithOptions方法启动时做了太多工作。结合高加载时间和100%CPU使用率,该应用程序看起来像一个精美的瓷器商店中的颠簸公牛。这些是操作系统喜欢杀死的应用程序。