SenTestingKit 在 Xcode4 中未找到
当我尝试导入
时,出现此错误:SenTestingKit/SenTestingKit.h:没有这样的文件或目录。
我首先使用单元测试。我正在使用 xcode 4.2 和 ios 5 sdk。但在我的系统中我安装了两个xcode版本,4.2和3.2.5。虽然我使用的是 xcode 4.2 ,但 xcode3.2.5 是我系统中的默认 xcode 。有人可以帮我进行单元测试吗?
When I tried to import <SenTestingKit/SenTestingKit.h>
, I get this error: SenTestingKit/SenTestingKit.h: No such file or directory.
I am using unit testing for the first. I am using xcode 4.2 with ios 5 sdk. But in my system I have two xcode version installed,4.2 and 3.2.5. Although i am using xcode 4.2 ,xcode3.2.5 is the default xcode in my system. Can any one help me with the unit testing?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
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 (simulator)
对于 Xcode 版本 4.3 及更高版本,将 /Applications/Xcode.app/Contents/ 添加到路径多于
SenTestingKit.framework is at :
/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 (simulator)
for Xcode versions 4.3 and above prepend /Applications/Xcode.app/Contents/ to the paths above
我不知道,但是两个 xcode 的框架路径都会不同。它可能位于 3.2.5 框架路径中,而使用 4.2 时,可能找不到它。如果我错了请纠正我。
I don't know, but the frameworks path will be different for both xcodes. it might be in 3.2.5 frameworks path and when using 4.2, it may not find it. Correct me if I'm wrong.