【发布时间】:2013-10-10 22:17:19
【问题描述】:
我在 iPhone 4S 上运行 iOS7,我的应用程序运行良好,直到我关闭我的 iPhone 并重新打开它。当我启动我的应用程序时,它只是闪烁黑屏,然后将用户带回 iPhone 应用程序图标视图。此外,我的应用程序使用 RestKit .20.3 和 ZBar 进行条码扫描,并在 Mountain Lion 上使用 Xcode 5 构建。然后我将我的 iPhone 连接回 Xcode,然后重新运行该应用程序,一切都很好了。有没有其他人遇到过这个问题。以下是我的崩溃日志中的一个 sn-p;
Date/Time: 2013-10-03 22:23:41.334 -0400
OS Version: iOS 7.0.2 (11A501)
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/DC06399E-15F3-46B1-B194-24CC93B763E2/ Genie.app/Genie
Reason: image not found
Dyld Version: 324
Binary Images:
0x2be76000 - 0x2be96fff dyld armv7 <b37cba000c7d3f8ea414f060d45ce144> /usr/lib/dyld
0x30e47000 - 0x30f4cfff CFNetwork armv7 <0ad158ad8b7a3716ad04ffde6081754c> /System/Library/Frameworks/CFNetwork.framework/CFNetwork
0x30fbf000 - 0x311affff CoreData armv7 <9338ccb7c0f2377196e181eb10b15ef5> /System/Library/Frameworks/CoreData.framework/CoreData
0x312f3000 - 0x31416fff CoreGraphics armv7 <17a70d032a013c06b9a4d244b100e2b3> /System/Library/Frameworks/CoreGraphics.framework/CoreGraphics
0x31b99000 - 0x31d83fff Foundation armv7 <75c827267c5a3c85a3b21a9459d3c312> /System/Library/Frameworks/Foundation.framework/Foundation
0x329f5000 - 0x32a58fff MobileCoreServices armv7 <5d5b5ca6dd7a305688d5a4d47363d534> /System/Library/Frameworks/MobileCoreServices.framework/MobileCoreServices
0x3380f000 - 0x3384ffff Security armv7 <492fcd48d4de3f29b01799ace718d3d7> /System/Library/Frameworks/Security.framework/Security
【问题讨论】:
-
您是否在您的应用程序上运行任何单元测试?由于 SenTestingKit 测试框架,它似乎崩溃了,但不确定它为什么会运行。
-
我也有同样的想法,但经过更多研究后,我相信这与我在项目中使用的 Zbar 版本有关。
-
SenTestingKit 在 Xcode 5 中我的 Pods Frameworks 文件夹下以红色突出显示。为什么它是红色的?
-
这通常意味着它在构建过程中被编译。如果出现严重错误(例如 pod 未正确链接),它将在构建过程中失败。这是一个运行时错误,您似乎设置了一个异常断点来捕获它
-
能够通过在我的目标构建阶段中的链接库下将 SenTestingKit 设为“可选”来解决我的问题。此外,使用了这篇帖子stackoverflow.com/questions/7895296/… 中的一些技巧,但是,由于您的原始评论,我能够将其拼凑起来。再次感谢您提供有用的 cmets。