ios - 如果从应用商店或 testflight 下载 iPhone 应用程序崩溃

标签 ios xcode testflight

我完成了应用程序的开发过程,在将其发布到应用程序商店之前,我已经进行了几轮测试(在 IOS 6.0.1 版上进行临时测试)。在进行临时测试时,我没有发现构建有任何问题。一切正常。提交到应用程序商店后,我收到苹果团队的报告,称应用程序在具有 IOS 版本 6.1.3 的 iphone 5 上崩溃。所以我将我的 iphone 更新到 6.1.3 。更新到最新版本后,我将构建上传到 testflight 并从中下载了应用程序。它正在崩溃。我从手机上卸载了应用程序并直接连接到系统并直接通过 xcode 安装,没有任何代码更改。应用程序开始正常运行。我对崩溃背后的原因感到困惑。我确信这不是代码的问题,因为如果我直接通过 xcode 安装,相同的代码工作正常。 通过 testflight 和直接从 xcode 安装应用程序黑白有什么区别? 可能是什么问题? 我对崩溃日志进行了符号化处理,发现代码没有任何问题。 有没有人遇到过类似的问题?如果得到修复请帮助我。非常感谢您的帮助。谢谢 下面是我的崩溃日志

Version:         ??? (???)
Code Type:       `enter code here`ARM (Native)
Parent Process:  launchd `enter code here`[1]
Date/Time:       2013-05-07 10:19:43.206 -0700
OS Version:      iOS 6.1.4 (10B350)
Report Version:  104
Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x43462d40
Crashed Thread:  0
Thread 0 name:  Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0   libobjc.A.dylib                 0x3bc905d0 objc_msgSend + 16
1   Foundation                      0x348031dc _NSDescriptionWithLocaleFunc + 48
2   CoreFoundation                  0x33f7b42e __CFStringAppendFormatCore + 11158
3   CoreFoundation                  0x33ef289e _CFStringCreateWithFormatAndArgumentsAux +        

4   Foundation                      0x34802cf8 +[NSString stringWithFormat:] + 56
5   Nuedoo                          0x0002f8a2 -[VCache updateWithXML:] (VCache.m:122)
6   Nuedoo                          0x0003f00a -[VParser parseXMLFile:] (VParser.m:80)
7   Nuedoo                          0x0002ecda -[VBrowser open:] (VBrowser.m:23)
8   Nuedoo                          0x0002d6e8 -[Vaayoo_FrameworkAppDelegate:]   (Vaayoo_FrameworkAppDelegate.m:57)
9   UIKit                           0x35e09a9c -[UIApplication  _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 248
10  UIKit                           0x35e09620 -[UIApplication _callInitializationDelegatesForURL:payload:suspended:] + 1164
11  UIKit                           0x35e0182e -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 694
12  UIKit                           0x35da9d1a -[UIApplication handleEvent:withNewEvent:]   + 1006
13  UIKit                           0x35da97a8 -[UIApplication sendEvent:] + 68
14  UIKit                           0x35da91ea _UIApplicationHandleEvent + 6194
15  GraphicsServices                0x37ac15f4 _PurpleEventCallback + 588
16  GraphicsServices                0x37ac1222 PurpleEventCallback + 30
17  CoreFoundation                  0x33f6f3e4 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 32
18  CoreFoundation                  0x33f6f386 __CFRunLoopDoSource1 + 134
19  CoreFoundation                  0x33f6e20a __CFRunLoopRun + 1378
20  CoreFoundation                  0x33ee1238 CFRunLoopRunSpecific + 352
21  CoreFoundation                  0x33ee10c4 CFRunLoopRunInMode + 100
22  UIKit                           0x35e00468 -[UIApplication _run] + 664
23  UIKit                           0x35dfd2b4 UIApplicationMain + 1116
24  Nuedoo                          0x00056efa main (main.m:14)
25  Nuedoo                          0x0002ce84 start + 36
Thread 1:
0   libsystem_kernel.dylib          0x3c189d98 __workq_kernreturn + 8
1   libsystem_c.dylib               0x3c0d7ad6 _pthread_workq_return + 14
2   libsystem_c.dylib               0x3c0d77f2 _pthread_wqthread + 362
3   libsystem_c.dylib               0x3c0d7680 start_wqthread + 4

Thread 2 name:  Dispatch queue: com.apple.libdispatch-manager
Thread 2:
0   libsystem_kernel.dylib          0x3c1795d0 kevent64 + 24
1   libdispatch.dylib               0x3c0b4d22 _dispatch_mgr_invoke + 806
2   libdispatch.dylib               0x3c0b0374 _dispatch_mgr_thread + 32

Thread 3:
0   libsystem_kernel.dylib          0x3c189d98 __workq_kernreturn + 8
1   libsystem_c.dylib               0x3c0d7ad6 _pthread_workq_return + 14
2   libsystem_c.dylib               0x3c0d77f2 _pthread_wqthread + 362
3   libsystem_c.dylib               0x3c0d7680 start_wqthread + 4

Thread 4 name:  WebThread
Thread 4:
0   libsystem_kernel.dylib          0x3c178e30 mach_msg_trap + 20
1   libsystem_kernel.dylib          0x3c178fd0 mach_msg + 48
2   CoreFoundation                  0x33f6f2b6 __CFRunLoopServiceMachPort + 126
3   CoreFoundation                  0x33f6e02c __CFRunLoopRun + 900
4   CoreFoundation                  0x33ee1238 CFRunLoopRunSpecific + 352
5   CoreFoundation                  0x33ee10c4 CFRunLoopRunInMode + 100
6   WebCore                         0x39ee9390 RunWebThread(void*) + 440
7   libsystem_c.dylib               0x3c0e20de _pthread_start + 306
8   libsystem_c.dylib               0x3c0e1fa4 thread_start + 4

Thread 0 crashed with ARM Thread State (32-bit):
r0: 0x1f5c0ab0    r1: 0x39a512ae      r2: 0x34004b3a      r3: 0xffffffff
r4: 0x43462d38    r5: 0x00000000      r6: 0x34004b3a      r7: 0x2fdd3178
r8: 0x2fdd367c    r9: 0x0e6944ab     r10: 0x3c307c20     r11: 0x1f5c0ca0
ip: 0x3c3b8704    sp: 0x2fdd3164      lr: 0x348031e1      pc: 0x3bc905d0
  cpsr: 0x20000030
</string>
<key>displayName</key>
<string>Nuedoo</string>
<key>name</key>
<string>Nuedoo</string>
<key>os_version</key>
<string>iPhone OS 6.1.4 (10B350)</string>
<key>system_ID</key>
<string></string>
<key>version</key>
<string>??? (???)</string>
</dict>
</plist> 

最佳答案

直接通过 XCode 安装应用程序将使用您的“调试”配置(还取决于它在构建方案中的设置方式)。首先归档它,将使用您的 Adhoc/Release 配置。

Edit schemes Edit scheme

配置可能在搜索路径、常量、预处理器宏和编译/构建期间使用的其他内容方面有所不同。

由于它在直接从 xcode 构建时运行良好,您可以查看运行构建配置(“调试”)和“存档”构建配置(上图中的“临时”)之间的差异。

要查看您的配置之间的差异,请选择您的应用目标并使用 <Multiple values> 搜索字段(在build设置选项卡内) enter image description here

您还可以将“运行”步骤设置为使用“发布”配置(具有接受您的设备的正确配置),在这种情况下,您应该能够在连接到 xcode 时捕获异常(并且也许使用断点可以更好地了解导致它的原因)。

关于ios - 如果从应用商店或 testflight 下载 iPhone 应用程序崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16563894/

相关文章:

iOS Ad Hoc 安装失败

iOS 自动续订订阅(沙盒)

iphone - 添加来自另一个类的 View

ios - 从服务中获取数据 Objective c

swift - 如何使用按钮更改 NSCollectionView 的数据

ios - 错误上传 TestFlight : Invalid IPA/dSYM not found

ios - IOS 设备的反向 TCP?

ios - WKWebView runJavaScriptAlertPanelWithMessage 从 iOS 9.3 崩溃

ios - 查询语句未在 xcode 中执行 sqlite 数据库

ios - App Review环境中appStoreReceiptURL的路径名是什么?