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

查看:160
本文介绍了为什么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. 为什么设备和模拟器r没有框架,没有罚款,但存档版本没有?

  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我真的很想在概念层面上理解这个问题,而不是在事情发生之前就把它解决掉。

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.

测试目标用小方框表示,而不是一个由小房子象征的App-Target 。

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天全站免登陆