Xcode - 找不到SenTestingKit [英] Xcode - SenTestingKit not found

查看:190
本文介绍了Xcode - 找不到SenTestingKit的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我升级我的xcode版本时,我遇到了一个问题。我使用单元测试,现在当我尝试导入SenTestingKit( #import< SenTestingKit / SenTestingKit.h> )时,我收到此错误: SenTestingKit / SenTestingKit.h:没有这样的文件或目录

I have an issue that popped up when I upgraded my version of xcode. I use unit tests, and I now when I try to import SenTestingKit (#import <SenTestingKit/SenTestingKit.h>), I get this error: SenTestingKit/SenTestingKit.h: No such file or directory.

我查看了我的构建设置,并且我有以下配置选项:

I have looked at my build settings, and I have the following configuration options:

== Linking ==
Other Linker Flags: -framework Foundation -framework SenTestingKit -framework UIKit
Prebinding: No

== Search Paths ==
Debug Configutation: "/iphonesimulator4.0/Developer/Library/Frameworks" "/Xcode4/Library/Frameworks"

我已经检查了 / Xcode4 / Library / Frameworks ,以及 SenTestingKit.framework / 目录在那里

I've checked /Xcode4/Library/Frameworks, and the SenTestingKit.framework/ directory is there.

那么我错过了什么?

推荐答案

在XCode中创建新的测试用例时遇到了同样的问题。然而,这是由于我在创建测试用例时选择错误目标的愚蠢。

I had this same issue when creating a new test case in XCode. However, this was due to stupidity of me selecting the wrong target when creating the test case.

使用File New ...,正在使用目标应用程序设置而不是测试用例的目标来包含和编译测试用例。检查Build Phases选项卡并查看编译源披露显示我的特定问题。

Using "File New...", the test case was being included and compiled with the target application settings instead of test case's target. Checking the Build Phases tab and looking in the "Compile Sources" disclosure revealed my particular issue.

这篇关于Xcode - 找不到SenTestingKit的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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