为什么 SenTestingKit 会导致我的应用程序崩溃? [英] Why is SenTestingKit causing my app to crash?

查看:26
本文介绍了为什么 SenTestingKit 会导致我的应用程序崩溃?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我为 iPhone 创建了一个基于地图的应用程序,最近将它提交给了商店.我在设备或模拟器上运行该应用程序没有问题.然而,商店拒绝了它,因为它在发布时崩溃了.崩溃日志抱怨未找到 SenTestingKit 框架:

I've created a map-based app for the iPhone, and recently submitted it to the store. I had no trouble running the app on the device or simulator. However, the store rejected it because it crashed on launch. The crash logs complain that the SenTestingKit framework wasn't found:

Date/Time:       2012-02-21 19:02:26.048 -0800
OS Version:      iPhone OS 5.0.1 (9A405)
Report Version:  104

Exception Type:  EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x00000001, 0xe7ffdefe
Crashed Thread:  0

Dyld Error Message:
  Library not loaded: /Developer/Library/Frameworks/SenTestingKit.framework/SenTestingKit
  Referenced from: /var/mobile/Applications/*Long Application Reference Number*/MyApp.app/U of T Map
  Reason: image not found
  Dyld Version: 199.5

我已经调查了其他遇到此问题的人,并且我确信在我继续摆弄它时,我会找到成功包含 SenTestingKit 框架所需的框架搜索路径.

I've looked into others having this problem, and I'm sure as I continue to fiddle with it, I'll find the framework search path I need to include the SenTestingKit framework successfully.

我感到困惑并需要帮助理解的是:

What I'm confused about and need help understanding is:

  1. 为什么设备和模拟器在没有框架的情况下运行良好,但存档版本却没有?

  1. Why did the device and simulator run fine without the framework, but the archived version didn't?

为什么它认为我需要这个框架?我在开发过程中没有使用任何单元测试.我使用了 SBJSON 和 ASIHTTPRequest 库,但在任何库代码中都没有看到 SenTestingKit 的 #import 语句.

Why does it think I need this framework? I didn't use any unit testing during development. I used the SBJSON and ASIHTTPRequest libraries, but I didn't see an #import statement for SenTestingKit in any of the library code.

我是否更容易消除对 SenTestingKit 的需求或以某种方式将其正确包含在存档中?我想解决这个问题,但我需要尽快重新提交到应用商店.

Is it easier for me to remove the need for SenTestingKit or somehow include it properly in the archive? I'd like to fix this problem, but I need this re-submitted to the app store ASAP.

我真的很想在概念层面上理解这个问题,而不是在事情成功之前解决问题.

I would really like to understand this problem on a conceptual level, rather than hack away until things work.

推荐答案

仅仅因为您没有导入 SenTestingKit-Headers,并不意味着您没有链接其库.

Just because you are not importing the SenTestingKit-Headers, does not mean that you are not linking its library.

检查您的构建配置/s => 目标 => 构建阶段 => 将二进制文件与库链接 用于条目 SenTestingKit.framework.如果它存在于除测试目标之外的任何东西中,请将其删除.

Check your Build-Configuration/s => Target => Build Phases => Link Binary With Libraries for the entry SenTestingKit.framework. If that is present in anything but a Test-Target, remove it.

测试目标由一个小盒子表示 ,而不是应用程序-以小房子为标志的目标 .

A Test-Target is symbolized by a little box , as opposed to an App-Target which is symbolized by a little house .

这篇关于为什么 SenTestingKit 会导致我的应用程序崩溃?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆