iOS App在Apple审批流程中崩溃,但对我而言并非如此

时间:2013-10-08 08:57:55

标签: ios crash crash-reports cocoapods sentestingkit

过去两周我一直在尝试更新iOS客户端应用程序,不幸的是,它被拒绝了两次,因为苹果公司表示它在iOS7上崩溃了。 Apple向我发送了以下崩溃报告。

Incident Identifier: C213974C-73E2-42C4-A2AA-E4C2A454319E
CrashReporter Key:   2c5d5176cc4387265bd86c427bf138d2b0acfe38
Hardware Model:      xxx
Process:             Twlight Sports [502]
Path:                /var/mobile/Applications/2B9ED7B5-787E-48ED-AAEC-3DEF87A86C67/Twlight Sports.app/Twlight Sports
Identifier:          com.twilightsports.twilightsports
Version:             1.2 (1.2)
Code Type:           ARM (Native)
Parent Process:      launchd [1]

Date/Time:           2013-09-27 15:22:18.784 -0700
OS Version:          iOS 7.0 (11A465)
Report Version:      104

Exception Type:  EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000001, 0x00000000e7ffdefe
Triggered by Thread:  0

Dyld Error Message:
  Library not loaded: /Developer/Library/Frameworks/SenTestingKit.framework/SenTestingKit
  Referenced from: /var/mobile/Applications/2B9ED7B5-787E-48ED-AAEC-3DEF87A86C67/Twlight Sports.app/Twlight Sports
  Reason: image not found
  Dyld Version: 324

Binary Images:
0x2beed000 - 0x2bf0d78a dyld armv7  <b37cba000c7d3f8ea414f060d45ce144> /usr/lib/dyld

我删除了项目中对SenTestingKit的所有引用,并再次提交了应用更新。 一周后,我收到了Apple提供的完全相同的崩溃报告。

然后我创建了一个AdHoc非常相同的二进制文件,我发送给Apple并将其部署到我的iPhone 4S和iPad 2上。两个设备都能正常工作而不会崩溃。

我已经对拒绝希望苹果公司将再次测试该应用程序提出上诉,但他们拒绝了上诉,只是声称它仍在崩溃并且不再提供任何帮助。目前我不知所措,因为我无法复制崩溃,因此无法修复它。

我还在我的工作区中运行了CocoaPods,并安装了Kiwi TDD pod。这引用了但是,Pods Build目标在其链接二进制文件库中没有SenTestingKit.framework No SenTestingKit framework

4 个答案:

答案 0 :(得分:2)

您可以在重新提交之前使用otool检查您的应用二进制文件,以了解它是否与SenTestingKit相关联。 otool -L将列出Mach-O二进制文件的链接库。

例如,Xcode链接:

% otool -L /Applications/Xcode.app/Contents/MacOS/Xcode                                                                             
/Applications/Xcode.app/Contents/MacOS/Xcode:
    /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa (compatibility version 1.0.0, current version 20.0.0)
    @rpath/DVTFoundation.framework/Versions/A/DVTFoundation (compatibility version 1.0.0, current version 3532.0.0)
    @rpath/DVTKit.framework/Versions/A/DVTKit (compatibility version 1.0.0, current version 3546.0.0)
    @rpath/IDEFoundation.framework/Versions/A/IDEFoundation (compatibility version 1.0.0, current version 3569.0.0)
    @rpath/IDEKit.framework/Versions/A/IDEKit (compatibility version 1.0.0, current version 3591.0.0)
    /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation (compatibility version 300.0.0, current version 1052.0.0)
    /usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version 228.0.0)
    /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1197.1.1)
    /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit (compatibility version 45.0.0, current version 1247.0.0)

您可以通过创建App Store构建,将.ipa复制到某个文件夹,在您的应用商店二进制文件上运行此操作。将.ipa重命名为.zip。打开.zip文件,然后在应用程序内的二进制文件上运行otool -L,可能是这样的:(这是iBooks)

% cd iBooks\ 3.1.3/Payload/iBooks.app                                                                                                     
% otool -L iBooks                                                                                                                         
iBooks:
    /usr/lib/liblockdown.dylib (compatibility version 1.0.0, current version 1.0.0)
    /System/Library/Frameworks/StoreKit.framework/StoreKit (compatibility version 1.0.0, current version 1.0.0)
    /System/Library/PrivateFrameworks/Celestial.framework/Celestial (compatibility version 1.0.0, current version 1.0.0)
    /System/Library/Frameworks/AssetsLibrary.framework/AssetsLibrary (compatibility version 1.0.0, current version 1.0.0)
    /System/Library/Frameworks/Foundation.framework/Foundation (compatibility version 300.0.0, current version 992.0.0)
    /System/Library/Frameworks/UIKit.framework/UIKit (compatibility version 1.0.0, current version 2372.0.0)
    /System/Library/Frameworks/CoreGraphics.framework/CoreGraphics (compatibility version 64.0.0, current version 600.0.0)
    /System/Library/PrivateFrameworks/iTunesStoreUI.framework/iTunesStoreUI (compatibility version 1.0.0, current version 1.0.0)
    /System/Library/Frameworks/MediaPlayer.framework/MediaPlayer (compatibility version 1.0.0, current version 1.0.0)
    /System/Library/PrivateFrameworks/iTunesStore.framework/iTunesStore (compatibility version 1.0.0, current version 1.0.0)
    /System/Library/PrivateFrameworks/StoreServices.framework/StoreServices (compatibility version 1.0.0, current version 1.0.0)
    /System/Library/Frameworks/QuartzCore.framework/QuartzCore (compatibility version 1.2.0, current version 1.8.0)
    /System/Library/PrivateFrameworks/GraphicsServices.framework/GraphicsServices (compatibility version 1.0.0, current version 14.0.0)
    /System/Library/PrivateFrameworks/AppSupport.framework/AppSupport (compatibility version 1.0.0, current version 29.0.0)
    /System/Library/PrivateFrameworks/WebKit.framework/WebKit (compatibility version 1.0.0, current version 536.26.0)
    /System/Library/Frameworks/CoreData.framework/CoreData (compatibility version 1.0.0, current version 419.0.0)
    /System/Library/PrivateFrameworks/JavaScriptCore.framework/JavaScriptCore (compatibility version 1.0.0, current version 536.26.0)
    /System/Library/Frameworks/CFNetwork.framework/CFNetwork (compatibility version 1.0.0, current version 609.0.0)
    /System/Library/PrivateFrameworks/WebCore.framework/WebCore (compatibility version 1.0.0, current version 536.26.0)
    /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit (compatibility version 1.0.0, current version 275.0.0)
    /System/Library/PrivateFrameworks/Bom.framework/Bom (compatibility version 2.0.0, current version 189.0.0)
    /usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.5)
    /System/Library/Frameworks/CoreText.framework/CoreText (compatibility version 1.0.0, current version 1.0.0)
    /usr/lib/libAccessibility.dylib (compatibility version 1.0.0, current version 1.0.0)
    /System/Library/Frameworks/MobileCoreServices.framework/MobileCoreServices (compatibility version 1.0.0, current version 40.0.0)
    /usr/lib/libsqlite3.dylib (compatibility version 9.0.0, current version 9.6.0)
    /System/Library/Frameworks/MessageUI.framework/MessageUI (compatibility version 1.0.0, current version 1.0.0)
    /System/Library/Frameworks/AVFoundation.framework/AVFoundation (compatibility version 1.0.0, current version 2.0.0)
    /System/Library/Frameworks/ImageIO.framework/ImageIO (compatibility version 1.0.0, current version 1.0.0)
    /System/Library/Frameworks/SystemConfiguration.framework/SystemConfiguration (compatibility version 1.0.0, current version 499.0.0)
    /System/Library/Frameworks/Security.framework/Security (compatibility version 1.0.0, current version 1.0.0)
    /System/Library/Frameworks/AudioToolbox.framework/AudioToolbox (compatibility version 1.0.0, current version 359.0.0)
    /usr/lib/libicucore.A.dylib (compatibility version 1.0.0, current version 49.1.0)
    /usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version 228.0.0)
    /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 56.0.0)
    /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 173.8.0)
    /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation (compatibility version 150.0.0, current version 793.0.0)

在列表中查找应用的二进制文件中的SenTestingKit

答案 1 :(得分:1)

您发布的信息非常有限,但我会从以下步骤开始:

  1. 你xxx'的硬件型号,但崩溃可能是硬件特定的,它可能只发生在你没有测试的硬件上。
  2. 与操作系统相同,您可能已经在7.0.1或7.0.2上进行了测试,但根据崩溃报告,它发生在7.0上,因此请确保对此进行测试。
  3. 帮自己一个忙,开始使用TestFlight进行崩溃报告,您不必依赖发送崩溃报告的人,而是将崩溃报告自动发送给您并进行符号化。
  4. 在硬件上测试应用程序时,请确保测试发布配置。在优化发布版本时,有许多事情可能会出错,因此测试版本是唯一明智的选择。
  5. 验证期间是否收到任何警告?如果是,也许你应该认真对待它们?
  6. 我认为应用程序无法启动但在启动时崩溃。在这种情况下,我不确定TestFlight是否会对您有所帮助,相反我认为您的Debug和Release配置之间可能存在差异,导致SenTestKit被后者使用。

答案 2 :(得分:1)

好.....

为了解决这个问题我基本上不得不从我的工作区中删除CocoaPods,删除测试目标和测试方案,我上周四重新发布了应用程序,它今天刚刚被接受。

这是一个非常绝望的尝试修复,我认为罪魁祸首是Apple正在我的项目上运行测试方案,我没有正确设置。删除Kiwi后,Cocoapods看起来像修复了要求SenTestingKit框架的任何内容

答案 3 :(得分:0)

我面临类似的问题,即应用程序在我的设备中工作正常但被苹果拒绝。 有人说包中的某些文件已损坏。 当我为所有用户设置读取,写入和执行权限并再次提交应用程序时,它已被批准。 这可能是您案件中的原因之一。请尝试设置权限并重新创建二进制文件并提交。