【发布时间】:2017-10-14 06:59:21
【问题描述】:
我终于完成了我的申请,是时候进行一些 beta 测试了。所以我将我的应用程序上传到 itunes connect 以通过试飞对其进行测试,但是当我执行一些任务时它一直在崩溃。
- 当我尝试从试飞应用中下载的菜单打开应用时。
- 当我尝试使用 AFnetworking 发出 http 请求时
- 当我向
CoreData插入新记录时 - 有时当我从试飞中打开应用程序时,它并没有崩溃,而是在启动屏幕后显示黑屏。
我一直在寻找 5 天没有任何线索。我已经使用从 xcode 运行的发布和调试模式对其进行了测试,它根本不会崩溃。仅当应用程序从 testflight 安装时才会出现此问题。我认为可能是一些内存分配问题。这是testflight的错误吗?我怎样才能使测试飞行中发生的相同行为也发生在我的 xcode 中,以了解并修复错误。
我的目标是 ios 8.0 ++
在 iphone 7 plus(ios 10.2) 和 iphone 5s(ios 9.3) 上测试。
Xcode 8.3.2
我收到了很多不同的崩溃报告,但其中大部分与此类似。也许我在字典中插入了一些零值?但是为什么我从 xcode 构建它时不会发生。
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Triggered by Thread: 0
Filtered syslog:
None found
Last Exception Backtrace:
0 CoreFoundation 0x18319ee38 __exceptionPreprocess + 124
1 libobjc.A.dylib 0x182803f80 objc_exception_throw + 56
2 CoreFoundation 0x183084554 -[__NSDictionaryM setObject:forKey:] + 924
3 Cellecter 0x1001db19c 0x100040000 + 1683868
4 Cellecter 0x1001dafe4 0x100040000 + 1683428
5 CoreFoundation 0x183140eac __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 20
6 CoreFoundation 0x1831406cc _CFXRegistrationPost + 396
7 CoreFoundation 0x18314044c ___CFXNotificationPost_block_invoke + 60
8 CoreFoundation 0x1831a9494 -[_CFXNotificationRegistrar find:object:observer:enumerator:] + 1532
9 CoreFoundation 0x18307e788 _CFXNotificationPost + 368
10 Foundation 0x183adfd1c postQueueNotifications + 684
11 CoreFoundation 0x1831547b0 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 32
12 CoreFoundation 0x183152554 __CFRunLoopDoObservers + 372
13 CoreFoundation 0x183152884 __CFRunLoopRun + 672
14 CoreFoundation 0x18307cd10 CFRunLoopRunSpecific + 384
15 GraphicsServices 0x184964088 GSEventRunModal + 180
16 UIKit 0x188351f70 UIApplicationMain + 204
17 Cellecter 0x1001e8834 0x100040000 + 1738804
18 libdyld.dylib 0x182c1a8b8 start + 4
更新:我的第一个和第四个问题是如何解决的现在我的问题缩小到在尝试将记录插入 afnetworking 时崩溃。
【问题讨论】:
标签: ios objective-c xcode testflight