ios - 使用试飞时应用程序崩溃

标签 ios objective-c xcode testflight

我终于完成了我的申请,是时候进行一些 Beta 测试了。所以我将我的应用程序上传到 itunes connect 以通过试飞对其进行测试,但是当我执行少量任务时它总是崩溃。

  1. 当我尝试从试飞应用程序的下载菜单中打开应用程序时。
  2. 当我尝试使用 AFnetworking 发出 http 请求时
  3. 当我向 CoreData 插入新记录时
  4. 有时,当我从试飞中打开应用程序时,它没有崩溃,但在启动屏幕后显示黑屏。

我已经搜索了 5 天,但毫 headless 绪。我已经用从 xcode 运行的发布和 Debug模式对其进行了测试,它根本不会崩溃。只有当应用程序从 testflight 安装时才会出现此问题。我认为可能是一些内存分配问题。这是来自 testflight 的错误?我怎样才能让在试飞时发生的相同行为发生在我的 xcode 中,以及如何知道并修复错误。

我的目标是 ios 8.0++

在 iphone 7 plus(ios 10.2) 和 iphone 5s(ios 9.3) 上测试。

Xcode 8.3.2

我收到了很多不同的崩溃报告,但其中大部分与此类似。也许我在字典中插入了一些 nil 值?但是为什么当我从 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 时崩溃。

最佳答案

这可能是很多事情。

这可能是 CoreData 的迁移问题,ManagedObjectContext 问题。

黑屏可能是 View 问题。

你的问题太笼统了,我们没有代码,不知道你最近的发展情况。

您使用的是真实设备吗?模拟器?哪个版本的 Xcode? iOS 部署目标?

下次提问时请引用这篇文章。

How to Ask

关于ios - 使用试飞时应用程序崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43980383/

相关文章:

ios - WatchKit 应用程序无法在模拟器中加载

ios - 写入 plist 文件(在特定行/项目中)

iphone - Xcode 4.2 首选项 "Support Wirelessly Connected Devices"有什么作用?

ios - 隐藏标签栏时不会更新安全区域插图

iphone - 在 iPhone 上以 IMA4 格式录制单声道

ios - Swift UISwipeGestureRecognizer 如何检测对角线滑动?

ios - 如何在 UITests 的 MkMapView 中访问嵌套在 UIStackView 中的元素?

ios - UIAlertView 首先弃用 IOS 9

objective-c - glUseProgram 在 iOS 中不起作用

ios - 无法使用 '[NSAttributedString.Key : Any]' 类型的参数为 'String' 类型的值添加下标