0

当我尝试导入<SenTestingKit/SenTestingKit.h>时,出现此错误: SenTestingKit/SenTestingKit.h: No such file or directory。

我首先使用单元测试。我正在使用 xcode 4.2 和 ios 5 sdk。但是在我的系统中,我安装了两个 xcode 版本,4.2 和 3.2.5。虽然我使用的是 xcode 4.2,但 xcode3.2.5 是我系统中的默认 xcode。任何人都可以帮助我进行单元测试吗?

4

2 回答 2

0

我不知道,但是两个 xcode 的框架路径会有所不同。它可能在 3.2.5 框架路径中,使用 4.2 时可能找不到它。如我错了请纠正我。

于 2012-01-20T10:18:11.983 回答
0

SenTestingKit.framework 位于:

/Developer/Library/Frameworks/SenTestingKit.framework (OS X)

/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOSX.X.sdk/Developer/Library/Frameworks/SenTestingKit.framework (iOS)

/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulatorX.X.sdk/Developer/Library/Frameworks/SenTestingKit.framework(模拟器)

对于 Xcode 4.3 及更高版本,将 /Applications/Xcode.app/Contents/ 添加到上述路径

于 2012-06-06T15:03:36.477 回答